I am building a page that may receive LARGE amounts of html from an ajax call, which it than insert into the page. Sometimes, instead of the html i am expecting, i will get an http 401 error. Ideally i want to have the error handler fire first, so i can set an error flag, display a message, and NOT insert the html that comes in.
The problem i am having is that the error handler fires LAST, and so i have already inserted the html, which contains unexected script tags, and it makes everything blow up.
also, i noticed that ajaxError fires after the 'complete' handler, which blows.