IE 9 just stopped processsing my JSON stringify calls. It was working perfectly. Did anything happen in the "Windows Update" I get the error JSON is undefined.
Make sure you're not viewing the page in compatibility mode. That impacts the JavaScript implementation used, in addition to the rendering engine.
I believe a recent Windows Update caused localhost sites to start opening in compatibility mode by default. You can disable that in Tools > Compatibility View settings. There's a checkbox to determine whether or not "intranet" sites are displayed in compatibility
mode by default.
Thanks, that did it. Based on your advice, I removed "localhost" from the list of sites displayed in "Compatibility" Mode. This has delayed my project by some 46 HOURS.
I am just amazed that Microsoft will make such a subtle, but nonetheless costly, change without providing any information on the impact to ongoing projects; especially when this update came through a "Windows Security Update".
SamTheMan
Member
237 Points
69 Posts
IE 9.0.1 and JSON undefined
Jun 20, 2011 11:21 PM|LINK
IE 9 just stopped processsing my JSON stringify calls. It was working perfectly. Did anything happen in the "Windows Update" I get the error JSON is undefined.
It works perfectly in Chrome, Safari, Firefox.
gt1329a
All-Star
15377 Points
2501 Posts
ASPInsiders
MVP
Re: IE 9.0.1 and JSON undefined
Jun 21, 2011 03:39 PM|LINK
Make sure you're not viewing the page in compatibility mode. That impacts the JavaScript implementation used, in addition to the rendering engine.
I believe a recent Windows Update caused localhost sites to start opening in compatibility mode by default. You can disable that in Tools > Compatibility View settings. There's a checkbox to determine whether or not "intranet" sites are displayed in compatibility mode by default.
A guide to combining jQuery and ASP.NET: jQuery for the ASP.NET developer
SamTheMan
Member
237 Points
69 Posts
Re: IE 9.0.1 and JSON undefined
Jun 21, 2011 10:15 PM|LINK
Thanks, that did it. Based on your advice, I removed "localhost" from the list of sites displayed in "Compatibility" Mode. This has delayed my project by some 46 HOURS.
I am just amazed that Microsoft will make such a subtle, but nonetheless costly, change without providing any information on the impact to ongoing projects; especially when this update came through a "Windows Security Update".
mark.abraham...
Member
2 Points
1 Post
Re: IE 9.0.1 and JSON undefined
Jul 28, 2011 06:11 AM|LINK
Thank you so much for that answer.