Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XMLHttpRequest.responseURL in IE

I'm looking a way to get XMLHttpRequest.responseURL in IE.

My code (myreq.responseURL) works correctly using Chrome, Firefox, and Safari.

Is there a way to do the same (also using another function) in IE?

Any help is really appreciated.

like image 405
Middle Avatar asked Jan 24 '16 13:01

Middle


People also ask

What is responseURL?

responseURL property returns the serialized URL of the response or the empty string if the URL is null . If the URL is returned, any URL fragment present in the URL will be stripped away. The value of responseURL will be the final URL obtained after any redirects.

What is an XHR URL?

XMLHttpRequest (XHR) objects are used to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.


1 Answers

XMLHttpRequest.responseURL is not supported in IE as of yet.

The closest alternative I could think of is XMLHttpRequest.getResponseHeader()

like image 143
Isaac Abramowitz Avatar answered Sep 23 '22 23:09

Isaac Abramowitz