[jQuery] Re: jQuery not setting X-Requested-With XMLHttpRequest

2008-07-03 Thread Diego A.
Use this: $.ajaxSetup({ headers: {"X-Requested-With":"Ajax"} }); Diego 2008/7/3 duck! <[EMAIL PROTECTED]>: > > > Does setting the "contentType" work? > http://docs.jquery.com/Ajax/jQuery.ajax#options > > > Chris Bailey-4 wrote: > > > > > > I'm using jQuery 1.2.6, and I can't seem

[jQuery] Re: jQuery not setting X-Requested-With XMLHttpRequest

2008-07-03 Thread Chris Bailey
>From what I can tell, I've now fixed this in my code. What's frustrating is that I don't believe I changed anything (but obviously something must have). I added some alerts into the jQuery code itself to see if it was truly setting the request header, and then as soon as I did that, it started w

[jQuery] Re: jQuery not setting X-Requested-With XMLHttpRequest

2008-07-03 Thread duck!
Does setting the "contentType" work? http://docs.jquery.com/Ajax/jQuery.ajax#options Chris Bailey-4 wrote: > > > I'm using jQuery 1.2.6, and I can't seem to get jQuery to set the X- > Requested-With when it makes AJAX calls. I saw somewhere that this > may have to do with cross-site issues i