Возможности отловить редирект к сожалению пока нет, данную возможно планируют добавить в будущих версиях спецификации
http://www.w3.org/TR/2008/WD-XMLHttp...15/#notcovered
Цитата:
|
This specification does not include the following features which are being considered for a future version of this specification:
load event and onload attribute;
error event and onerror attribute;
progress event and onprogress attribute;
abort event and onabort attribute;
Timers have been suggested, perhaps an ontimeout attribute;
Property to disable following redirects;
responseXML for text/html documents;
Cross-site XMLHttpRequest;
responseBody to deal with byte streams;
overrideMimeType to fix up MIME types;
getRequestHeader() and removeRequestHeader().
|