6

I am getting the following error with my jquery ajax call in IE9, where I am using Json.stringify().

Microsoft JScript runtime error: 'JSON' is undefined

The same function was working for me till yesterday and still works on my colleagues machine and on chrome on my machine. But for no apparent reason has stopped working on my machine today.

May you please help me understand, what is causing it?

Thanks!

4
  • 2
    Are you in compatibility mode? Commented Apr 18, 2012 at 23:07
  • No. I don't think so. How to check? Commented Apr 18, 2012 at 23:10
  • 2
    IE9’s Document Modes and JavaScript: blogs.msdn.com/b/ie/archive/2011/03/24/… You can figure out what mode you're in by hitting F12 and looking at the upper-right. Commented Apr 18, 2012 at 23:17
  • Changing the Document Mode solved it for me :) Commented Feb 6, 2014 at 11:22

2 Answers 2

11

the solution for me was to turn OFF compatibility mode by clicking the "torn page" icon to the right of the address bar.

Who knows how it got turned on in the first place!

Sign up to request clarification or add additional context in comments.

1 Comment

IE11, "Compatibility view settings", enabled seems to be default for Intranet sites - presumably the presumption is that most intranet sites are most likely microsoft packages and therefore not compatible with their own browser.
9

You need to have your document is rendered in standards mode. See this one http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/fc41127c-0243-4d2e-8e7c-2b311f12e390.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.