All I'm going to do is put the parse value into a temp var and then, after
checking to make sure that the form value is numeric, I'm going to compare
the form value to the temp value and if they don't match I know the user
entered a decimal since the parse will round a decimal. The only one that
can slip by is 0.00 which is fine. However thanks for the heads-up Dan.
Definitely a good thing to keep in mind for the future.

Karl

> From: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 23 May 2002 15:56:43 -0400
> To: [EMAIL PROTECTED]
> Subject: RE: [CFTALKTor] off-topic Javascript question
> 
> If you are going to use these functions, ensure that you are getting your
> desired result.  Consider the value 2.6.  Do you want 2 or 3?  What will
> these functions return?
> 
> **************
> IN CFML use the Int() function and in JavaScript do form.fieldname.value =
> parseInt(form.fieldname.value).
> 
> 
> 
> 
> -
> You are subscribed to the CFUGToronto CFTALK ListSRV.
> This message has been posted by: [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: "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)

Reply via email to