Duane,
Also, look into the isNaN() JS function.
Courtney Payne, Sr. Developer - Team Lead
Digicon Corp
Federal Systems
Washington, DC
----- Original Message -----
From: "Stuart Duncan" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, December 20, 2000 4:45 PM
Subject: Re: OT: JS equivalent to IsNumeric???
>
> If you're not too picky about restricting it to 4+ browsers, you can use
> regular expressions like this one.
> It allows for minus and period too.
>
>
> function validateNumeric( strValue ) {
> var objRegExp = /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/;
>
> //check for numeric characters
> return objRegExp.test(strValue);
> }
>
>
> Stuart Duncan
> MaracasMedia Inc.
>
>
>
> At 12:49 PM 12/20/00 -0500, you wrote:
> >Is there a JS equivalent to IsNumeric???
> >
> >Also does anyone know the address to the JS-Jive email list?
> >
> >Duane Boudreau
> >Sr Software Engineer
> >e-Dialog
> >http://www.e-dialog.com
> >Lexington, MA
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists