Oblio,

A lot of people on this list don't like cfforms for just the reason you are 
stating - there are flaws in the js such as the one you've discovered.

I did some testing and found that 1$ will also slip through, as well as 1, 
(one with a comma).

This is why people are saying to try another validation scheme.  All you can 
do is hope the js validations are better in CF8, and get cracking with 
Massimo's validation, qForms or whatever.

-- Josh




----- Original Message ----- 
From: "Leitch, Oblio" <[EMAIL PROTECTED]>
To: "CF-Talk" <cf-talk@houseoffusion.com>
Sent: Thursday, March 08, 2007 8:45 AM
Subject: RE: improved js for form validation?


> First, thanks to everyone for responding.  However, I never intended to
> start a flame war - the fact is I'm using JS and it's not working right.
> Specifically, I'm using CF's built in validation for ranges in a
> <cfinput> tag.  The trouble I'm having is it's accepting a value of
> "1+".  Technically, it contains a valid integer; however, the addition
> of the plus sign invalidates the value as an integer.  I was really
> hoping to illicit commentary about the methods CF's JS routine uses to
> reach its decision.  I don't want to use another JS validation system
> (unless I can find no other way), and I don't want to specially code my
> processing to deal with one special case.
>
>
>
> Does anyone know why CF's code would consider this valid?  Has there
> been any attempts to improve the /CFIDE/scripts/cfform.js routines?
>
>
>
> TIA,
>
>
>
> Oblio
>
>
> This email message may contain privileged and/or confidential information. 
> If you are not the intended recipient(s), you are hereby notified that any 
> dissemination, distribution, or copying of this email message is strictly 
> prohibited. If you have received this message in error, please immediately 
> notify the sender and delete this email message from your computer.
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272031
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to