jquery ajax parse error in ie
Hi,
I am getting this error in ie. But it works fine in firefox and chrome.
I am pasting the jquery I used. Any idea why this is failing?
var url = "http://urltocheck";
$.support.cors = true;
url = url + "?ref=jquery-jsonp-request&callback=?";
$.ajax({
crossDomain:true,
type: 'GET',
url: url,
cache:false,
dataType: 'jsonp',
success: function (json) {
alert("success");
alert(json);
},
error: function (x, t, m) {
alert('jqXHR = ' + x.status + '-'+ x.responseText + '\ntextStatus = ' + t + '\nerrorThrown = ' + m);
}
});