Is there a way, in CF 8, to determine if the current request is calling a CFC that has access="remote"? Basically, I'd like to mimic CF 9's onCFCRequest() method, but only for remote methods.
I spent a good portion of yesterday afternoon trying to figure out why my jQuery AJAX call would work for me locally, but break on our staging site. All code was identical in every comparison, and both sites were using the same database so the data was identical as well. Long story short, our staging server had CF debugging turned on, and it was appending the debug info to the end of the json being returned from my CFC call, which then threw errors in jQuery. Locally I have debugging going to ColdFire/Firebug, so I never saw the problem. Anyway, a simple "cfsetting showdebugoutput="false"" fixed the issue. So, rather than having to remember to use cfsetting for every remote method, is there a way I can programmatically figure out if the current request is calling a remote method in CF 8? -- Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334572 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm