I am using jquery and I am making an ajax call to a web service that returns some json data. This works fine in firefox, but for some reason not in IE.
$.ajax({
type: "GET",
url: "http://domain.com/Service.svc/data",
dataType: "json",
success: function(data) {
alert(data.d.test);
}
});
I know the content of the response (data):
{"d":{"__type":"MyContent:#","test":888.75,"test2":592.5}}
So the warning shows 888.75 in firefox, but 0 in Internet explorer. I do not understand why this is happening?
source
share