Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Validation

Status
Not open for further replies.

ice78991

Programmer
Nov 20, 2006
216
I am looking for the best way to do some client side form validation. I have been looking into writing some javascript but am wondering if the bes solution for a simple form is cfinput with the validate attributes. Are there any problems associated with cfinput in practice?
 
Nah <cfinput /> is good. Just use the required and message attributes. Also use the validate attribute if you're looking for special types of input such as numbers, dates, etc.

ColdFusion server sends the requesting browser pre-written javascript to handle the validation of these controls.
 
Keep in mind that the <cfinput> tag does not have the textarea attribute.

Might want to check the adobe's site to see what form attributes the cf version you use has.

_____________________________
Just Imagine.
 
If you use Dreamweaver as an editor....

Search the CF forum on Adobe for "yaromat" and "javascript integration kit". The latter looks like it is for Flash only but works great in Dreamweaver.



Cheers,

Bluetone
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top