« Anti Competitive Behavior | Main | Keyword Arbitrage: Where can it go Wrong? »

Javascript Form Validation Tutorial

This is, hands down, the best Javascript form validation tutorial I've ever seen. Granted, it's the only one I've ever seen. But it's fantastic! I sent it around to everyone at work and mandated that we follow these principles everywhere.

http://www.xs4all.nl/~sbpoley/webmatters/formval.html#example

Key points:

1. Javascript validation doesn't ever actually authenticate data -- must always be verified server-side
2. People don't always have JS on, so you must allow the code to degrade gracefully
3. People hate filling out complex forms -- help them out with fast validation and auto-formatting as much as possible

Follow these principles for happy living!

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on August 3, 2006 9:51 AM.

The previous post in this blog was Anti Competitive Behavior.

The next post in this blog is Keyword Arbitrage: Where can it go Wrong?.

Many more can be found on the main index page or by looking through the archives.