The following AJAX call is failing in IE.
$.ajax({
url:"{{SITE_URL}}/content/twitter.json",
dataType:"json",
error:function(xhr, status, errorThrown) {
alert(errorThrown+'\n'+status+'\n'+xhr.statusText);
},
success:function(json) {
...Snip...
}
});
The error function returns
Undefined
parsererror
OK
No request is made to the server so I don't think its a problem with the JSON.
Fixed, See #1351389
is this a copy/paste? the one thing that gets me all the time is leaving the last ',' in an object constructor. that is, most browsers JS accept:
but IE chokes on this because the comma after the last item. change it to:
and it works.
Fixed, I changed the content-type from
application/json; charset=utf8
to just plainapplication/json
.I hate IE :)
Also to avoid IE super-caching try this:
That way each request is a new url for IE to get :D