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:
- header("X-Frame-Options: SAMEORIGIN");
- 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"