Why use JavaScript Form Field Validation?

March 30, 2009 at 4:22 am Leave a comment


You can be sure that any user that completes a form will make some data entry mistake, mistakes you want to catch before submitting the data to the database server or other mechanism.

The validation of the data is up to the web programmer. Sometimes you need to make sure that there is a value in a required form field, a valid numerical range, valid characters or a valid format etc.

JavaScript Form Field Validation is used to enhance the user experience by not having the web form submit to the server before validating the user input, this reduces the users’ waiting time and also reduces load on the server.

It should be noted that JavaScript is not to be relied on solely for input validation as the user can turn JavaScript of and bypass the checks.

Why use this framework for Form Field Validation?

Generic form field validation is something that could take months to write, this framework has been written over a period of several years and has been tested on many websites.

Features
– Validates all form fields in one go instead of one at a time
– Checks for required input
– Checks for several (not just one) valid numerical ranges
– Checks for character ranges
– Checks for a valid format
– Checks whether a checkbox, radio button or dropdown selection is made
– Custom error messages
– Define validation scripts with XML
– Define custom error handlers
– Years of development

You can download the validation scripts that we use from here

Advertisements

Entry filed under: JavaScript Form Validation, Programming. Tags: .

Content syndication Convert Microsoft Word Characters

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 19 other followers

Archives

Top Rated

Top Clicks

  • None

Blog Stats

  • 169,146 hits

%d bloggers like this: