Hooking Javascript Validation to an HTML Form
- August 24th, 2008
- Posted in javascript . programming
- By David
- Write comment
HTML forms, which collect data from users, usually have more going on under the hood than meets the eye. They need to check the inputs to make sure they’re formatted correctly for the database. The server needs to validate the input, but validating input at the client makes for a better user experience. Let’s look at the what, why, and how of validating HTML forms on the client-side.
You might want to check in with Scott Thundercloud on the OpenPASL team. He’s been working on some form auto generation tools with client side and server side validation (as well as bridged validation – things like checking to see if a username is taken). I’m not sure how far he’s progressed with that stuff but it may be a useful collaboration.