I am using following code to grab data from JSON.
$(document).ready(function()
{
$.getJSON("http://www.example.com/data.php?id=113&out=json", function(data) {
$.each(data.issue.page, function(i,item) {
imagesJSON[i] = item["@attributes"];
});
alert(imagesJSON.length);
});
});
It works in Mozilla, Chrome and other browser but not in IE. (Not in any Version).
$.ajax
andcache: false
– Neboerror: function(x) { }
block and then catch the error and look atx.responseText
to see if an error is returned. – Prindle