I spent a while this morning trying to figure out why an JQuery AJAX call wasn’t working in Internet Explorer 8. The call was being made to a PHP script which was outputting XML.
I had checked the XML was valid and (no surprises) it was all working fine in Firefox.
Eventually I found this useful discussion. It turns out you need to have the following header in your PHP script:
header("content-type:application/xml;charset=utf-8");
I was using ‘text/xml’ which is perfectly valid but hey. That’s IE for you.
While I’m doing the usual IE bashing, it should be said that version 8 of the browser is much better both from the point of view of standards support and debugging, so at least progress is being made. Only took 8 versions eh?