omg! - your right!!! Thank you - I don't know how I missed that! Brook
-----Original Message----- From: Raymond Camden [mailto:raymondcam...@gmail.com] Sent: June-03-12 11:59 AM To: cf-talk Subject: Re: CFC returns escaped strings.. grrrr When you call it, are you adding returnformat=json in the url? It will override the returnformat in your function call. On Sun, Jun 3, 2012 at 1:31 PM, Brook Davies <cft...@logiforms.com> wrote: > > I am trying to do some jsonP stuff and call a CFC directly. The > problem is the CFC doesn't return the correctly formatted string. I > want to return a string from the remote CFC call but it quotes the > string and escapes the quotes. I return: > > jsonp_fa({"RESULT":"ok"}) > > And I get: > > "jsonp_fa({\"RESULT\":\"ok\"})" > > My CFC method is set to return a string with no formatting, so why > does it escape the string???!! > > <cffunction name="record" access="remote" returntype="string" > returnformat="plain" output="true"> > > > Brook > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351424 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm