Re: Check for remote CFC call in CF 8

2010-06-15 Thread Azadi Saryev
specifically for detecting jquery ajax calls to remote cfc functions you can use something like this: cfset headers = getHttpRequestData().headers cfif structKeyExists(headers, X-Requested-With) AND headers[X-Requested-With] eq XMLHttpRequest it's an ajax request using jquery! /cfif more

Re: Check for remote CFC call in CF 8

2010-06-15 Thread Raymond Camden
Just to be clear - checking the header works when the library used for calls uses it. It's not 100% correct (but speaking practically, it is safe). On Tue, Jun 15, 2010 at 10:23 AM, Azadi Saryev azadi.sar...@gmail.com wrote:  specifically for detecting jquery ajax calls to remote cfc functions