> 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?

Yes, ASC().

http://livedocs.adobe.com/coldfusion/8/htmldocs/functions_a-b_25.html#110104
6

In the future, to answer questions like this, you might find it helpful to
browse the CF documentation:

http://livedocs.adobe.com/coldfusion/8/htmldocs/

>From there, choose "CFML Reference", then "CFML Functions", then "Functions
by Category". This particular function would be in the "string function"
category. You can usually find the function you want, without any specific
background knowledge, in a few minutes. When I teach basic CF classes, I
make a point of covering this, because it can really save you a lot of time.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293244
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