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