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
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
2 matches
Mail list logo