Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Tuesday, March 24th, 2009

Time Event
5:10p
ideas regarding preventing form submission when there is JS error
Below is a snippet of the code I am using to validate a form.

Read more...Collapse )

Is there a way to stop the form from submitting (returning "true") if there is an error in the Javascript?

Normally, I include the form action in the JS - but I am working a team who keeps reversing my code and frankly I just dont want to deal with their unbending ideology. However, I don't want my forms to submit without passing the validation script. (Forms using this script will submit if there is a Javascript error).

<< Previous Day 2009/03/24
[Calendar]
Next Day >>
About LiveJournal.com
Image