Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:
 
fValidate

fValidate is a javascript-based form validation tool for HTML forms. Read the features list to learn more about what fValidate can do for you.



Why another validation script?


Well, simple. Because when I needed good form validation -- everything that already existed out there was pretty hard to implement quickly and/or was not very powerful. Most validators you find out there will only check for blank fields and even those will let forms submit with fields full of spaces and tabs. So, I set out to make a validator myself. One that would be


  • Quick to implement

  • Powerful

  • Easy to use

  • Scalable

  • Comprehensive

  • Highly comaptible

I believe I've achieved all of these with fValidate.



What is so great about fValidate?


Many validation scripts out there have you go through a tedious process of entering form and field names, repeating the same validation code over and over again, and other nonsense like that. With fValidate, all you need to do is 3 things:


  1. Link the fValidate script files into your page(s).

  2. Add the appropriate validation attributes to your form elements (yes, it's done right in the HTML!!)

  3. Add the event handler to the form that will run the validation script.

That's it! I'm confident that this is the easiest and fastest javascript-based form validation tool on the web. If you happen know of something better, I'd like to hear about it.



The Technical Details


fValidate is an object-oriented script that is driven by a form's onsubmit event. The main algorithm searches the form's elements collection for validation codes and validates the fields accordingly. Most of the text-based validators make heavy use of regular expressions. Using regular expressions allows for the most complex and powerful types of validation, as well as the most efficient.




Features list


  • Validate many different data types

  • Validate w/o requiring field

  • Disable Submit and/or Reset button(s) upon successful validation

  • Prompt user with optional confirm message before sending

  • Twenty-Nine predefined error notification modes, from simple alerting to advanced DOM manipulation.

  • Meaningful error messages to the user, per field

  • Custom error message on a field-by-field basis

  • Optional Group-Error mode

  • Small global variable namespace footprint (only four!)

  • Works with most browsers. See issues for more info

  • Easy and fast to implement

  • I18N (langauge file) support

  • This handy website to handle all your fValidate needs




Author: Peter Bailey
Price: Free
Version: 5.01b
Platform(s): IE4+, NS6+, Mozilla 1.0+, Safari, Opera
Rating:
Total Votes: 5
Demo: View it
Download Script: click here

Visit Site | Bookmark | Digg It! | Stumbleupon! | Send to a Friend | Report Bad Link


More JavaScript Forms Scripts:
Ask A Question
characters left.