| Author |
The form is not submitting
|
navalk joshi
Greenhorn
Joined: May 02, 2012
Posts: 11
|
|
|
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
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.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
navalk joshi
Greenhorn
Joined: May 02, 2012
Posts: 11
|
|
hey rob....here 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
Marshal
Joined: Jan 10, 2002
Posts: 56168
|
|
|
You have already been given the answer: when you wish the form to submit do not return false.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
navalk joshi
Greenhorn
Joined: May 02, 2012
Posts: 11
|
|
thanks to both of you rob and bibeault.......my query is resolved
|
 |
 |
|
|
subject: The form is not submitting
|
|
|