Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes HTML, CSS and JavaScript and the fly likes submit a form using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "submit a form using javascript" Watch "submit a form using javascript" New topic

submit a form using javascript

indu iyengar
Ranch Hand

Joined: Jul 30, 2010
Posts: 115
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...

thanks ,
indu iyengar
Ranch Hand

Joined: Jul 30, 2010
Posts: 115
form is resetting with document.form.submit () ...
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60774

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".

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: submit a form using javascript
Similar Threads
Retrieve data from other server using JavaScript
Pressing the enter key receive extra invalid data
Question on jQuery ajax functionality & troubleshooting called bean in JSF page
Need Help With Dynamic text box in JSP
how to delete the rows which are checked