Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
117
rated 0 times [  120] [ 3]  / answers: 1 / hits: 15339  / 14 Years ago, wed, january 19, 2011, 12:00:00

How to check the response of getJSON function call in jQuery file. Which function do I have to edit?


More From » ajax

 Answers
26

I've to agree with the comments above — your question is more than vague! So I'm now only guessing if that's what you want:



$.getJSON('ajax/test.json', function(data) {
alert(JSON.stringify(data));
});


You might have to required the JSON library for this to work:
http://www.json.org/js.html


[#94149] Tuesday, January 18, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
daphnew

Total Points: 716
Total Questions: 113
Total Answers: 113

Location: Bonaire
Member since Sat, May 1, 2021
3 Years ago
;