Is there any clever way of handling php errors returned in the data object. Currently I occasionally get things like:
<br />
<font size='1'><table class='xdebug-error'
.....
this is generally followed by the json object I'm expecting. Is there any systematic way to look for these errors? An example call I'm using might be:
function getMyCharities(callback) {
$.post("my_file.php", function(data) {
callback(data);
});
}
In the documentation for jquery I've found:
.done(function() { alert("second success"); })
.fail(function() { alert("error"); })
.always(function() { alert("finished"); });
but these don't handle this type of error as I've tested it. I also don't want to build a error parser if possible.
thanks