This is a migrated thread and some comments may be shown as answers.

IE8 results in "Error: 'JSON' is undefined"

4 Answers 192 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 2
Dave asked on 26 Dec 2010, 09:40 PM
Hi there,

We end up with an error "Error: 'JSON' is undefined" when accessing pages using telerik controls in IE8.
It is quite new when migrating to IE8 (after some security hotfix?) and the compatibility mode does not help...
Trying the last version of Telerik controls does not help neither...

Do someone face similar issue and can give us some hint there?

Regards,
David

4 Answers, 1 is accepted

Sort by
0
Accepted
Lini
Telerik team
answered on 28 Dec 2010, 10:20 AM
Hello David,

Does the problem happen with all Telerik controls or only with certain ones? Does the problem happen on pages where there are no RadControls visible (e.g. only RadScriptManager)? Are you using a <meta> tag to force IE to a specific mode or is it running in the default (IE 8) mode?

The only reference I could find to a 'JSON' keyword in our code is in the jQuery version we are using and even there it is properly checked before it is used. This means that the problem might be caused by another library
or client code you have on your site. Check the JavaScript code you have for "JSON" (match whole word, match case) and see if you have any references that are not used properly.

Greetings,
Lini
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Dave
Top achievements
Rank 2
answered on 02 Jan 2011, 03:20 PM
Hi,

It was an external wrong piece of code from another framework that was buggy when testing locally.
Thank you having helped us pin-point the issue.

Best Regards,
David
0
Rafael
Top achievements
Rank 1
answered on 03 Feb 2011, 12:06 PM

Hi,

I was looking at this post because I had the same problem (JSON undefined) with my pages in IE8. The page is very simple, a Telerik Web Form as it comes from the “Add Rad Control scenario…” wizard.

The problem only occurs when IE is in Compatibility view. If I deactivate this feature all seems to work fine.

I hope this help other people with the same problem.

Regards.

0
Shirish
Top achievements
Rank 1
answered on 12 Jul 2018, 04:42 PM

Hi,

Also consider adding this after <title></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
I was able to fixed the issue after adding this.
Hope this helps.

Thanks
Shirish Bhavthankar

Tags
General Discussions
Asked by
Dave
Top achievements
Rank 2
Answers by
Lini
Telerik team
Dave
Top achievements
Rank 2
Rafael
Top achievements
Rank 1
Shirish
Top achievements
Rank 1
Share this question
or