GValidator Form Validation Library
Introduction
GValidator is a lightweight javascript form validation library that automatically adds client-side validation to form elements, without needing to write a single line of javascript.
The aims of the project are to provide the following:
- A user-friendly experience
- A reusable and lightweight library
- Semantically clean code
- Web Standards compliant code
- Cross browser compatibility
- Code flexibility and extensibility
- Promote adoption via ease of use
To use the library without customization, all you need to do is include it.
Other features:
- Easy Internationalization
- Simple plug-in mechanism for new validators, should you want to extend functionality
- Easily configurable
- No dependencies on other libraries such as JQuery, Mootools etc.
Documentation
Find more about GValidator, including the design and documentation at http://www.onegeek.com.au/articles/programming/javascript-form-validation.php
Latest Changes
Version 0.5.77
Latest stable release. Bug fixes for IE{6,7,8}.
Version 0.5.59
This release was mainly to fix a few bugs, code cleanup/refactor, and documentation frenzy (see new API Doc downloads).
Version 0.5.49
Major updates include:
- Internationalisation and translation file support added.
- Easy configuration, and form specific configuration via class names and id's
- Simple plugin file support
- Empty fields now have separate error messages
- Form level validation can be passed to a function handler via configuration
- Form level validation errors can be displayed in a container div via a configuration option
- Element level parameters added
- DEPRECATION of the following params
- ENABLE_COMPACT_MESSAGES (replace with config option eMsgFormat: 'compact')
- ICON (replaced by config options icons: {error: 'image/path', info...} )
Version 0.4.30
- Bug fix ( Issue 4 ). Generic text field did not take 'required' flag into consideration, and is now more closely related to AbstractTextField, in that it has a universal 'this.regex' predicate.
Version 0.4.25
- GValidator now resets along with a native DOM form reset.
Version 0.4.20
- Ability to set a field as required using html class 'required'.
- Ability to add multiple class names to a field without interupting GValidator.