I use $.get, $.post, and $.getJSON extensively, so I wanted to see how .ajaxError worked. I tried this...
$(document).ajaxError(function (e, xhr, options, error)
{
console.log(e);
console.log(xhr);
console.log(options);
console.log(error);
});
and I also tried putting it inside my $(document).ready().. And then I disabled my network connection. A slew of errors flew up from the timed POSTs in AJAX (because they were getting unexpected responses), and the GETs were coming back instantaneously (cached), but nothing else appeared in Firebug, as if ajaxError were never being called. What am I doing wrong? I just tried again with no console logs and just alert('foo'), and again nothing happened. Lots of errors, but ajaxError never firing.