Microsoft
Software
Hardware
Network
Question : How do I prevent a Submit if input validation fails?
If I'm doing input validation behind a HTML submit button, and the validation fails, how do I prevent the "submit"? Doing my input validation in the click of the submit button, is this the "correct" way to do it?
Thanks.
Answer : How do I prevent a Submit if input validation fails?
suppose validatePage() is your javascript function and it should return true or false.
then in your button onclick event you have to put onclick="return validatePage();"
then if the function returns false then your submit never hits.
Random Solutions
Sonicwall TZ100 WLAN to LAN traffic
watchguard firewall rejects some pdf attachments, but not others
Script needed to close program and stop/start service
setting SMTP server - please see attached file - it is not working
Read all data from a datagridview and copy it to a public array or something like that...
Can someone please advise the best way to migrate a drupal CMS website to another server
perl, select rows of data into an array
How to make Crystal Report not require SQL Server login, prompt
Thoughts and comments on a backup solution
How to open new pdf window using struts ?