April 04, 2001 12:38 AM
> To: CF-Talk
> Subject: RE: Simple validation
>
>
>
> May i use it for validation of ...E mail Address.
> like
>
>
> >
>
>
>
>
> doug@mediate.
>
>
RE: Simple validation
04/04/01
03
isDate(). isNumeric().
chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com
-Original Message-
From: Steven A. del Sol [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 6:04 PM
To: CF-Talk
Subject: Simple validation
I am in desperate need of a simp
Steven,
This may help. I pasted it from a presentation I wrote to give to some
staff programmers recently, so please excuse the semi-formal language.
Form validation via cold fusion
CF includes an easy way to validate your forms, called “Cold Fusion embedded
form validation”. The syntax is p
In reverse-order:
2. Number field (not a cfform just a plain form) - must validate that data
entered is a number
--> Use JavaScript to handle this on form submission. Or use CF: IsNumeric()
to handle it post-submission.
1. Date field (not a cfform just a plain form) - must validate that data
Look at the CF isDate and isNumeric functions for server side validation;
For client side, here's some javascript for date format validation:
var dateObj = new Date();
if (isNaN(dateObj.valueOf()))
return false;
For numeric, use isNaN.
-Original Message-
From: Steven A. del So
6 matches
Mail list logo