Personally, I'd say it's risky to attach an Ajax error handler *after* you've made an Ajax request.
I rearrange my code and place my ajax error callback above the document ready function. Is this the correct way of having a global
error callback on ajax request? Thanks for your thoughts..
I added also below code, to trap the 302 HTTP response code but I think it's not working though.
I always get an xhr status of 200.
But I see in my firebug that I get a 302 response but I think my firefox browser is handling this on its own. In the end, my login page gets appended into my
errorcontent div and I see an invalid json on the exception.
If you need to handle a specific response code then you should code a handler just for that error code; there are a variety of ways to do that.
Can you give me an idea please on how to properly trap the HTTP response of 302?
Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop