aspose file tools*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaSccript Validation API Needed & Issue with document.form.submit()