Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Abdul Kader
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have an issue with validating a form using the dynamic JavaScript. I am using JavaScript component ( 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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!