A very powerful and complete web form verification program Validator v1.05

Source: Internet
Author: User

Form Verification has always been a headache for web designers. Form Verification Validator is written to solve this problem and aims to free designers from complicated form verification, focus on Webpage Design and functional improvement.

Validator is a pseudo-static Class Based on JavaScript technology and custom attribute of objects. It can verify the input of form items on the webpage and allow multiple forms to be verified simultaneously on the same page, after you are familiar with the interface, you can verify a specific form item or even a string. Because it is a pseudo-static class, you do not need to instantiate it during calling. It is called directly by "class name +. Syntax + attribute or method name. In addition, Validator provides three different error message modes to meet different needs.

Validator currently supports the following verification types:
[JavaScript]
Validator currently supports the following verification types:
1. Whether it is null;
2. Chinese characters;
3. double-byte characters
4. English;
5. Number;
6. Integer;
7. Real number;
8. Email address;
9. Use the http url;
10. Phone number;
11. currency;
12. Mobile phone number;
13. Zip code;
14. ID card number (1.05 enhanced );
15. QQ number;
16. date;
17. password that complies with security rules;
18. duplicate value of an item;
19. Comparison of the two numbers;
20. Determine whether the input value is in the (n, m) interval;
21. length limit of input characters (can be compared by byte );
22. selection and determination of Single-choice buttons with the same name;
23. restrict the number of multiple buttons with the same name;
24. User-Defined Regular Expression verification;
25. File Upload format filtering (1.04)
Running Environment (client ):
IE6.0 + SP1 and Mozilla Firefox 2003 passed the test on Windows Server 1.0;
Netscape test passed in Lunix RedHat 9;

For form verification on the client side, the Validator Based on JavaScript can basically be satisfied. For details, download the CHM File: Validator. CHM.

Click to download
<Title> Form Verification class Validator v1.05 </title> <style> body, td {font: normal 12px Verdana; color: #333333} input, textarea, select, td {font: normal 12px Verdana; color: #333333; border: 1px solid #999999; background: # ffffff} table {border-collapse: collapse;} td {padding: 3px} input {height: 20;} textarea {width: 80%; height: 50px; overflow: auto;} form {display: inline} </style> <table align = "center"> </table>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.