Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

submit a form using javascript

 
indu iyengar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am using spring mvc with POST method and when I try to submit a form using javascript function, the control is not going to controller..


please guys how to submit a form (post request) from javascript function...
 
indu iyengar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
form is resetting with document.form.submit () ...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is an HTML forum, not a Spring forum. Showing us Spring source code is not appropriate.

Show the relevant portions of the HTML as they are sent to the browser.

P.S. Make sure you didn't name anything "submit".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic