This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes JavaSccript Validation API Needed & Issue with document.form.submit() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JavaSccript Validation API Needed & Issue with document.form.submit()" Watch "JavaSccript Validation API Needed & Issue with document.form.submit()" New topic
Author

JavaSccript Validation API Needed & Issue with document.form.submit()

Abdul Kader
Ranch Hand

Joined: Apr 11, 2007
Posts: 115
Hi All,

I have an issue with validating a form using the dynamic JavaScript. I am using JavaScript component (http://www.phatfusion.net/formvalidation/index.htm) where we are able to validate the all the fields in the form. It working when i test separately, however when i integrated with the application it don�t calling the validation function itself.

In application i am using document.form[0].submit(), to submit the form, however in the component they are registered the validation functionality only using onSubmit event. I came to know that if we are using the document.form [0].submit() then the onSubmit() event will not be called. Is there any way to overcome this issue?

OR do you know better Validation component which will take less effort. Please let me know if you can help on this. Thanks a lot
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JavaSccript Validation API Needed & Issue with document.form.submit()