I'm trying to parse XML in an Ajax response. When the server returns a 200 everything works fine. But it seems like XML parsing in JQuery is disabled on error.
statusCode:{
200:function(xml){alert($(xml).find("error").text());},
404:function(xml){alert($(xml).find("error").text());}
}
If I send a 200 I get the correct alert. But if I change the response code to whatever error I like, I just get an empty alert box. Am I plain stupid for sending text/xml on error, is this a bug in jquery or where am I going wrong?
Hope someone can help.
Thanks