Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

JSON.parse won't work in IE7

Posted on 2010-08-17
3
Medium Priority
?
1,473 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 83

Accepted Solution

by:
leakim971 earned 200 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 83

Expert Comment

by:leakim971
ID: 33454034
0
 
LVL 83

Expert Comment

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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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)
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Suggested Courses

876 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