I'm using Internet Explorer 9 for testing and ajax requests do not work (in all other browsers they work).
I have this code:
$.ajax({
type: "GET",
url: "http://cep.correiocontrol.com.br/60441145.json",
dataType: "json",
success: function(data) {
alert('sucess');
},
error: function (request, status, errorThrown) {
alert(errorThrown);
}
});
IE returns "NO TRANSPORT". I researched in forums and saw that the solution was to put above the script:
jQuery.support.cors = true;
I added but in IE now it returns "OBJECT ERROR". Has anyone gone through this?