File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes The form is not submitting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "The form is not submitting" Watch "The form is not submitting" New topic

The form is not submitting

navalk joshi

Joined: May 02, 2012
Posts: 12
Rob Spoor

Joined: Oct 27, 2005
Posts: 19541

You're form calls validate() on submitting. That always returns false, which causes the form submit to abort. This behaviour was built in to allow JavaScript to prevent a form from submitting if some fields were not filled in properly. You appear to want to use it in this way, but you need to return true to allow the form to submit.

How To Ask Questions How To Answer Questions
navalk joshi

Joined: May 02, 2012
Posts: 12
hey what i want is ....first the validation through javascript then ofcourse the submission of the form ...which is not happening at all........where should i modify the code to have the desired functionality......
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60048

You have already been given the answer: when you wish the form to submit do not return false.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
navalk joshi

Joined: May 02, 2012
Posts: 12
thanks to both of you rob and query is resolved
I agree. Here's the link:
subject: The form is not submitting
Similar Threads
about checking values between rows with dynamic table created using java script
dynamic table creation problem calling onchange
How to to validation in java script involve two jsp page?
wrong jar reference