If only checking for 1 character in a form field use onsubmit with the
following:
if ( form.field_to_check.value.indexOf('.') < 0 )
alert("This is a field with NO decimal.");
indexOf will return -1 for no occurrance of string or position if string is
found.
-alan
----- Original Message -----
From: Marc Campeau <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 23, 2002 3:34 PM
Subject: RE: [CFTALKTor] off-topic Javascript question
> IN CFML use the Int() function and in JavaScript do form.fieldname.value =
> parseInt(form.fieldname.value).
>
> Marc Campeau
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of A. Karl Zarudny
> > Sent: Thursday, May 23, 2002 3:16 PM
> > To: [EMAIL PROTECTED]
> > Subject: [CFTALKTor] off-topic Javascript question
> >
> >
> > Hi everybody.
> >
> > Anyone know how to check to make sure that a number entered in an input
> > field does NOT contain a decimal?
> >
> > Thanks,
> > Karl
> >
> > -
> > You are subscribed to the CFUGToronto CFTALK ListSRV.
> > This message has been posted by: "A. Karl Zarudny"
> > <[EMAIL PROTECTED]>
> > To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
> > Manager: Kevin Towes ([EMAIL PROTECTED])
> > http://www.CFUGToronto.org/
> > This System has been donated by Infopreneur, Inc.
> > (http://www.infopreneur.net)
> >
> >
>
> -
> You are subscribed to the CFUGToronto CFTALK ListSRV.
> This message has been posted by: "Marc Campeau" <[EMAIL PROTECTED]>
> To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
> Manager: Kevin Towes ([EMAIL PROTECTED])
http://www.CFUGToronto.org/
> This System has been donated by Infopreneur, Inc.
> (http://www.infopreneur.net)
>
>
-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: "Alan Goldberg" <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)