"Yav" which easily restricts input values ​​or form input check variously



There are various forms on the net anyway, anyway, there is a mail transmission form or questionnaire response form. There are many types of types that issue "error" indication if the value entered is incorrect, but from the side issued, "Do not allow such values ​​to be entered!" "Only accept up to 8 letters Once, please limit the number of characters that can be entered from the beginning to 8 characters! "" Often, you think that it is easy to understand where to enter again if an error occurs! "

So, this "Yav"In addition to checking the input error, you can restrict the value that can be entered from the beginning, specify the range if it is a number, change the color of the form after checking the input, make it easy to understand, It is a JavaScript file developed with open source that can easily incorporate functions. The error display after the input check can also be selected as a popup window or a type to display in the page.

Download from below. We also gathered other things that do various form input checks.
SourceForge.net: yav
http://sourceforge.net/projects/yav

Basically, editing "yav-config.js" as necessary, loading "yav.js" and "yav-config.js" in the header and then attaching rules to each form Feeling. It is kind and nice to be accompanied by a fairly detailed explanation by opening the included "index.html" in a browser. An example that works properly comes along so it's easy to understand.

Other libraries and JavaScript which do various kinds of input check are published as follows. Usability may improve if combined according to necessary functions.

Realtime validation using Ajax

JavaScript that will tell me with typing errors on the form

I tried combining balloon validator and TMT Validator

Usuilog - programming memo: [JavaScript] [Ext] Ext.js form component and input check

FValidator - An open source (free) unobtrusive javascript tool for easy handling form validation

Mutationevent :: Validate.js :: javascript package to validate various data

WForms - A Javascript Extension to Web Forms - The Form Assembly - The Form Assembly

Validator - Trac

in Web Service, Posted by darkhorse