How to check for redirects on ajax calls?

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-03-13T14:40:59Z Indexed on 2010/03/13 14:45 UTC
Read the original article Hit count: 124

Filed under:
|
|
|

I was looking at this answer and some other answers http://stackoverflow.com/questions/199099/how-to-manage-a-redirect-request-after-a-jquery-ajax-call/199156#199156

I can not get this to work. i check the XMLHttpRequest object in both success and complete. In both cases when there is a redirect instead of getting a 302 i get a 200 and the html for that page. How do i make it actually report the 3xx redirect instead of skipping ahead and giving me a 200?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX