This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes onload function is not working in portlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "onload function is not working in portlets" Watch "onload function is not working in portlets" New topic
Author

onload function is not working in portlets

kasyaparushi kiran
Ranch Hand

Joined: May 05, 2009
Posts: 33
Hi,

I am working on websphere portal server.
I think portal server doesnt support body tag
I have placed onload tag in body tag.
Is there any alternative method to call onload functionality in portlets?

Thanks & Regards,
K.Kiran Kumar
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
kasyaparushi kiran wrote:Hi,

I am working on websphere portal server.
I think portal server doesnt support body tag
I have placed onload tag in body tag.
Is there any alternative method to call onload functionality in portlets?

Thanks & Regards,
K.Kiran Kumar


You need to think how "portal" creates a page that is served to browser.
Typically a portal page has many portlets in it. If you put <body> tag in each of the "portlet" you will end up with too many <body> tags in "final" page that is served to browser.

May be you can call your function in <body> tag added by "portal". I am not sure which JSP in WebSphere Portal.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: onload function is not working in portlets
 
Similar Threads
Portlet body tag
Alternative to on Load method in BODY Tag
Using JavaScript how to pass parent form value to child
What are portlets
WebSphere Portal Server Qs