• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Call ProcessAction through Javascript?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic