This content has been marked as final.
Show 4 replies
-
1. Re: Loading javascript in the body
peterj Aug 11, 2008 11:20 AM (in response to vishalstudent123)Why not just include it as part of your portet's output? That output goes into the body tag.
-
2. Re: Loading javascript in the body
vishalstudent123 Aug 11, 2008 12:20 PM (in response to vishalstudent123)"PeterJ" wrote:
Why not just include it as part of your portet's output? That output goes into the body tag.
it needs to be in every page. and there isn't a single portlet that goes on all pages in my design. -
3. Re: Loading javascript in the body
peterj Aug 11, 2008 12:26 PM (in response to vishalstudent123)Why could you not have a portlet that is placed on all pages, using the empty renderer so that nothing shows?
Alternatively, you could modify the page layout files to include the script. For example, edit jboss-portal.sar\portal-core.war\layouts\*\index.jsp (or one of the JSPs that file includes, or add in another include). -
4. Re: Loading javascript in the body
vishalstudent123 Aug 11, 2008 1:08 PM (in response to vishalstudent123)I think that would work perfectly. Im going to try it out
Thanks.