Richard, here's a helpful site with comparisons of the various js options to encode:
http://xkr.us/articles/javascript/encode-compare/ -- Josh -----Original Message----- From: Steve Milburn [mailto:[email protected]] Sent: Tuesday, September 29, 2009 9:41 AM To: cf-talk Subject: Re: javascript / coldfusion ajax communication Richard In your js, use encodeURIComponent on any user entered data to properly encode the string. Have a look at the CF function URLDecode on the backend if CF doesn't properly decode your string automatically. Steve On Mon, Sep 28, 2009 at 9:31 AM, Richard White <[email protected]> wrote: > > hi > > our client side scripting is in javascript and server side code is > coldfusion. > > our javascript sends string data to coldfusion via url. > > what is the best way to encode/escape the javascript strings and > decode/unescape them in coldfusion > > thanks > > richard > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326745 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

