Hi! I'm trying to setup an ajax call which throws an error on timeout. function getXMLfeed(url, target) { $.ajax({ "url": url, "timeout": 10000, "error": function(d,msg) { alert("Could not load stuff"); }, "success": function(data){ var json = $.xml2json(data); gotdata(json, target); } });
This works, but the error is never thrown. If I change the URL to something that's broken, I do get the error message, but on timeout it never happens. Am I doing anything wrong? Or is this a bug somewhere? Thanks! PanMan.