Yes but wouldn't a regex be more efficient (in both languages)?

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-----Original Message-----
From: Richard White [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 13, 2007 3:25 PM
To: CF-Talk
Subject: ASCII String Value

Hi,

I have a javascript function that checks for any unwanted string character
values - such as \ or / etc...

In Javascript i loop through the length of the string and use the code:

myString.charCodeAt(i) // this gives me the asci value for the character so
i can test if it is an unwanted character

is there any similar function in coldfusion?

Thanks very much

Richard 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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

Reply via email to