Re: Ajax header not sent in all browsers

2010-06-13 Thread David Escobar
Ok, so I was able to fix the caching issue with IE by using $.ajax instead of $.get and setting the cache option to false. I was reading something about Firefox blocking all AJAX requests when it thinks that you're going across different domains - it thinks it's XSS - cross-site scripting.

Re: Ajax header not sent in all browsers

2010-06-12 Thread David Escobar
Ok, that helped narrow things down a little bit. It seems that IE is receiving the AJAX header after all. For some reason my JavaScript doesn't always get rendered correctly in IE, but if I clear the browsing history, cookies, temp files, etc., it works (at least until it starts caching things

Re: Ajax header not sent in all browsers

2010-06-09 Thread Ryan
If you simplify things down to something like the snippets below, does the alert display 'Said it was NOT ajax' for you? It shouldn't (and doesn't for me). Also, do you have the Tamper Data Firefox add-on installed to validate the headers being sent in? That could help narrow things down.

Ajax header not sent in all browsers

2010-06-09 Thread David Escobar
Hi everyone, I'm using Django 1.1 with jQuery 1.4.2 and currently testing with the Django development server. Whenever I send an AJAX request with $.get(), the HTTP_X_REQUESTED_WITH header only gets sent with Chrome and Safari. It does not get sent with IE or Firefox. I've verified this by