Meaningless Drivel is fun!*
The moose likes Portals and Portlets and the fly likes Call ProcessAction through Javascript? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Call ProcessAction through Javascript?" Watch "Call ProcessAction through Javascript?" New topic
Author

Call ProcessAction through Javascript?

Rena Ts.
Greenhorn

Joined: Sep 21, 2009
Posts: 1
Hello!


I need to submit a form without a submit button, through Javascript, in order for the ProcessAction method to be called.
I use this code inside the jsp:




but the processAction is never called. Is there a way to do this?

Thank you in advance.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Rena Ts. wrote:Hello!


I need to submit a form without a submit button, through Javascript, in order for the ProcessAction method to be called.
I use this code inside the jsp:




but the processAction is never called. Is there a way to do this?

Thank you in advance.


document.myform.submit() will do exactly the same thing as a "submit" button in a form (myform in your case) will do.
I am suspicious if this function (postLoad()) is getting called at the "right" time - call this function on click of a button & verify... If that calls processAction() method then the issue is when & where to call your postLoad() function - HTML/JS forum will help you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Call ProcessAction through Javascript?
 
Similar Threads
liferay portlet - form parameters missing from request
getting null value, from a variable being sent from JavaScript in the page
jQueryForm() / jQuerySubmit issue
encode namsepace in portlets
javaScipt onsubmit problem in jsp