This is how i use $.ajax
var link = "http://www.myapp.net/..."
$.ajax({
url: link,
cache: false,
async: false,
success: function(html){
},
error: function(){
}
});
The query result is either a blank page or a page with just a number. Thus, the error callback should never be run until the request is interrupted.
But I always get the following error
alert(jqXHR + "-" + textStatus + "-" + errorThrown);

Here is some info about the error code in the picture
I am running my project on localhost. The link in the ajax code points to another project on the Internet.
Any ideas?
source
share