Can't seem to get any response from an ajax call which response is 400
Bad Request
$.ajax({
url: url
type: "GET",
dataType: "json",
success: aj.dataLoaded,
error: function() {
alert("error");
},
complete: function() {
alert("complete");
}
});
When server responds with error code 400 neither the error function
nor the complete function is called, any tips on how to correct this?
Could there be a problem with parsing output, since this particular
response also gives an error message in "text/plain" not JSON? Have
tried with both processData set to false and true but with the same
problem...
Have tried both jQuery 1.3 and 1.4
-- Anton