http://club.coolmaps.com
tomorrow's fusion today

CFFORM - javascript form validation
CFFORM replaces the standard HTML <FORM> tags. By itself it doesn't add value to forms, but what it does do is allow you to embed a whole bunch of other very cool and powerful CF tags including CFGRID, CFINPUT, CFSELECT, CFTEXTINPUT, CFTREE or any java applet using CFAPPLET.

So what!? Let's take a look at a very cool advantage of CFFORM - the CFINPUT tag.

So far we've been validating our forms server side which is great, but sometimes client side validation doesn't go astray which is what CFINPUT is all about.

CFINPUT replaces the standard HTML <Input> tag and lets you automatically embed javascript validation code into your forms.

click here to view sourceView the Source of this page in your browser, then view the CFM source that produced it!

Explore the CFFORM/CFINPUT Demo form below:

The field below has been set to 'Required'. The form cannot be submitted without a value. Try and submit the form without entering a value.

The field below has been set to 'Required' and 'Integer'. The form cannot be submitted without an Integer value. Try and submit the form without entering a value first, then enter a letter.

CFINPUT can generate the javascript to validate CreditCard, Date, Eurodate, Float, Integer, Social_Security_Number, Telephone, Time and Zipcode!

to home page
CF Workshop intro CFERROR and application.cfm CFFORM - auto javascript validation CFPARAM - setting default values CFIF - required fields CFIF - creating conditional code

Support CCC thru Amazon. Buy CF Bible 1 - The CF Web Application Construction Kit

 
member of club xChange
downloads contact us site map