Your daily dose of Java and related technologies.
News, Releases, Reviews, Tutorials, Articles, Events, Contests, Comments, Code and much more.
This java weblog is maintained by Xyling Technologies, making life simpler.

Tuesday, March 27, 2007

JavaScript Form Validation library

There had been a sort of thanksgiving when developers found the life saving code for JavaScript Number validation.
Many of them asked for some or the other type of variant. e.g. can I have only alphanumeric checking script, can I have email checking script and what not.

Now, here is a life saver for all of us. javascript-coder.com has a great library to make our life much much simpler. They have a javascript form validation library that does many types of form validations.

Here is how you can integrate in your pages:
frmvalidator.addValidation("FirstName","alpha");
frmvalidator.addValidation("FirstName","req","Please enter your First Name");
frmvalidator.addValidation("FirstName","maxlen=20","Max length for FirstName is 20");


Isnt it great? Its simple too!

For more information and to download the javascript library, you can point to the title of this post.

Happy coding!

[Resource-Type: Source Code/Library; Category: Web/JavaScript; XRating: 5]

1 Comments:

Anonymous Anonymous said...

SDA India Magazine and sda-india.com present the first of its kind conference on Java, Eclipse, Enterprise Architectures, SOA, Web Services, Software Testing, and Project Management, to the Indian Enterprise IT community of CIOs, CTOs, Management, System Analysts, Development Managers, IT Managers, Project Managers, Project Leaders, Software Architects, Software Developers, Software Testers, Database Administrators, and Web Developers.

http://www.sda-india.com/conferences/jax-india/

4:49 AM

 

Post a Comment

<< Home