You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Damle, Nikhil" <ND...@goendymion.com> on 2003/04/25 22:08:06 UTC

Using javascript within a portlet

A JSP page that is part of a portlet has javascript code that needs to
execute the onload function of the html body tag. The jsp page cannot
contain the body tag. where should i place the onload function call ?

Thanks

Nikhil

-----Original Message-----
From: Boyd, David [mailto:dboyd@nisys.com]
Sent: Wednesday, April 23, 2003 9:24 PM
To: Jetspeed Users List
Subject: Help with Action


(Using JSP)
 
I have the following problem, none of my eventSubmit_do* actions are being
called.  Looking at the log file I get the following:
 
JspPorlet: Executing action [portlets.TaskAction] for portlet [Task]
JspPortletAction: Action detected, calling doPerform 
JspPortletAction: retrieved portlet:
com.nisys.jetspeed.portal.portlets.TaskJSPPortlet@49494e
JspPortletAction: building normal
 
And then build normal context is being run.
 
Now, the portlet is set up so that have several links on the page that look
like buttons, each of these links calls a javascript function that does the
following:
 
            var e = document.taskForm.elements["eventSubmit"];
            e.name = "eventSubmit_" + action;
            
            document.taskForm.submit();
 
and the .jsp is
 
<form name="taskForm" method="post" action="">
            <input type="hidden" name="eventSubmit" value="">
            .
            .
            .
</form>
 
(designed to just submit back to itself)
 
What am I doing wrong here?

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org