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
> 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>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:334578
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to