My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

This Form Validation framework created in JavaScript is something I've worked on for years and I feel it's now at a stage where it can be made available to the public and hopefully improved upon.

The framework allows you to create validation inline

property = oForm1.addProperty( { 
	name:"businessName"
	, friendlyName:"Business name"
	, required:true .... } );

or have the code generated dynamically based upon the data from an XML file

<?xml version="1.0" encoding="utf-8"?>
<meta>
	<property 
		name="businessName" 
		friendlyName="Business name" 
		required="true" 
		minimumLength="2" 
		maximumLength="40" 
		trim="true"/>
</meta>

You can generate custom message or have the framework to handle it with generic error messages. The error display can be customised to display under each form element or as one string displaying all errors.

I'm not very familiar with source control, if anyone can put their hand up to manage this that would be great.

This code is currently in use by http://www.clickfind.com.au/ and http://www.unidapsolutions.com.au and several other projects

You can view a demo at http://www.clickfind.com.au/javascript-form-validation

Powered by Google Project Hosting