fValidator

by Fabio Zendhi Nagao (http://zend.lojcomm.com.br)

fValidator is an open source (free) unobtrusive javascript tool for easy handling form validation.

important update:

A fValidator like plugin is now available in the mootools-more branch as Form.Validator. Another great looking validation tool based in this work is FormCheck.

index:

  1. Index
  2. Abstract
  3. Examples
  4. Browser compatibility
  5. Features
  6. Usage
  7. License
  8. Download
  9. Version history
  10. Comments

abstract:

Nowadays everybody knows that javascript can be used to validate input data in HTML forms before sending off the content to a server. Despite of that, when there are many fields in the form, the JavaScript validation becomes too complex and boring to code. That's why fValidator exists, with it form validations are many times easier.

examples:

fValidator fValidator & iMask TOGETHER

browser compatibility:

fValidator is compatible and tested in Internet Explorer, Firefox (and its mozilla friends), Opera and Safari (thanks ???? for testing it). But it should work in other browsers too... If you successfully find another compatible browser, please let me know ;)

features:

Here's a brief list of the most important features:

fValidator is fully configurable. You can change any default option just initializating the class with an object in JSON. The following options are available:

how to use:

First of all, fValidator is built over MooTools v1.1, so both libraries are required.
Get MooTools at http://mootools.net and fValidator here. Use IceBeat Packito to see mootools dependences.
With scripts in hands, include them between your "head" definition:

Initialize the fValidator class:

That's it, at this rate you should be able to use fValidator. To enable the field validation for a input, just add one or more classes from the predefined types ("fValidate[x], x ∈ X") or register a custom type like:

license:

This piece of code is is released under the Open Source MIT license, which permits you to use it and modify it in every circumstance. For more details read it below:

The MIT License

Copyright (c) 2007 Fabio Zendhi Nagao - http://zend.lojcomm.com.br

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

download:

fValidator is available in the formats below:

version history:

05/22/2007 : v1.0 - first public release

comments:

Microsoft OLE DB Provider for SQL Server error '80004005'

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

/common/comments/list.asp, line 17

Did you like it? Disliked it? Express your feelings, leave-me a message. (Yellow fields are required)

© 2007-2009 Fabio Zendhi Nagao (nagaozen) - http://zend.lojcomm.com.br/