In my current project, I tried to call a javascript function on onload event of body tag of gsp page:
[html]
…
[/html]
But this onload event was not fired, because Grails picks the body tag from layout and not from the view. So I added the following line in body tag of my layout
[html]
…
[/html]
In above example pageProperty tag fetched the onload attribute from body tag of my view and added it to the body tag of my layout. That’s how it worked.
Amit Kumar
[email protected]
in.linkedin.com/in/amitkumar0110
twitter.com/amit_kumar0110
More Blogs by Me