On Wed, Jul 15, 2009 at 12:38 PM, candlerb<b.cand...@pobox.com> wrote: > Is there any way to be able to detect in $.ajax whether the response > involved a HTTP redirect?
A redirect should return some form of 30x Header (as opposed to a 200 OK). You can check that, which is more elegant than looking for login page text, but not really what you seek. To make life more difficult, that Header is in the XHR object, so you can only check it in the complete() callback (I believe). Otherwise I'm unaware of any solution. -- Brett Ritter / SwiftOne swift...@swiftone.org