Solved

JSON.parse won't work in IE7

Posted on 2010-08-17
3
1,459 Views
Last Modified: 2013-12-08
i have a JSON.parse(); and it works in firefox but in IE7 it throws a undefind error.  This is the routine

function (record){
var recordsToSend = Ext.apply(record.data);
var jsonStr = JSON.parse(recordsToSend);   //Her is where IE throws the error message.

}
0
Comment
Question by:mferna22
  • 3
3 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 50 total points
ID: 33453842
Include this in your page : http://www.json.org/json2.js

(check and remove the first line)
<script language="javascript" src="json2.js"></script>

Open in new window

0
 
LVL 82

Expert Comment

by:leakim971
ID: 33454034
0
 
LVL 82

Expert Comment

by:leakim971
ID: 33454167
Thanks a lot for the points!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Internet is a big network which is formed by connecting multiple small networks.It is a platform for all the users which are connected to it.Internet act as platform in different fields. Such as: Internet  as a collaboration platform. Internet  as…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now