I can't figure this one out for the life of me... I have the following simple div block:
<div id="result">Loading...</div>
and the following simple JQuery code:
$.ajax({
cache: false,
url: "/bogus-url",
method: "GET",
success: function(data) {
$("#result").html(data);
},
error: function(xhr) {
$("#result").html('Error occurred: ' + xhr.status + ' ' + xhr.statusText);
}
});
When I run it on one machine I get
Error occurred: 404 Not Found
and yet, when I run it another machine I get
Error occurred: 404 error
In fact I have created a JSFiddle that demonstrates this. I'm curious which version you guys get when you run it. Does anyone know what would cause this difference in behavior?