Skip to content Skip to sidebar Skip to footer

Incorrect JqXHR Response For Jquery Forms Plugin In IE8 And 9

I've got an unusual problem that I've only been able to replicate in IE8 and 9 - I've tested Safari, Chrome (both on a Mac, Firefox (on a PC) and IE8, 9 and 10. I have the followin

Solution 1:

I (think I) finally worked out what was going on here - after a few attempts.

Two things may have contributed to this problem in Internet Explorer 8 and 9:

  • For security, I had my application set all X-Frame-Options headers to deny. I changed this to SAMEORIGIN for my AJAX response scripts (only). This link helped greatly in working this out.
  • IE seemed to go into Quirks mode (as opposed to Standards Mode) for all Content-Type headers other than "Content-type: text/html; charset=utf-8" for the XML responses, which appeared to break IE8 in particular. This breaks JQuery's

The two lines of PHP that I used to rectify this were:

  1. header("X-Frame-Options: SAMEORIGIN");
  2. header("Content-type: text/html; charset=utf-8");

Hope this helps someone!


Post a Comment for "Incorrect JqXHR Response For Jquery Forms Plugin In IE8 And 9"