Search Content

Articles Categories


Advertisements

Partners


Blog Tags


Popular Articles


Post-Processing Form Data with onsubmit
2008-05-23 01:55:28

Apowerful application of JavaScript event handlers is to process form data before it is submitted to ensure the validity of the data. Using this, you can ensure that required fields have been completed and that fields contain valid types of data (for instance, if you are asking for a phone number in a text field, it shouldn’t contain a generic string). By validating data in the client with JavaScript, you can prompt the user to fix the problems before submitting the form and thus eliminate an unnecessary transaction with the server, which consumes bandwidth and server resources.  Read more

Posted into JavaScript Tutorials / 1 comments »