I’m having a redirect sent by my server but jquery’s ajax error: callback seems to get xhr.status=200 and status="parseerror"
Anywork around?? I don’t want to overload other codes since I use the for the things that they were intended for? Is this just not possible with jquery?
The callback is like this:
error: function(xhr, status){...}
When you redirect from the server you can send a response header along with it. And then look for that respone header in the ajax error/success callback. I hope that will help you
Now using
statusyou can decide what to do.