javascript - Do XMLHttpRequests work in internet explorer 11? - Stack Overflow

Refer to title question.I am very new to javascript and used it while making an html page for work on

Refer to title question. I am very new to javascript and used it while making an html page for work on my laptop that works perfectly fine with Internet Explorer 8, but it does not work on anyone's puter that has installed IE11. As we are all supposed to upgrade to IE11 (nobody told me until this issue came up), I need to figure out why this works in IE8 and not IE11. I am guessing that the XMLHttpRequests are the issue. Basically I am using the xmlhttprequests to check if some files exist before posting them to the html page.

I'm in the process of requesting and getting approved to install IE11, but was hoping someone could clarify if I am correct that XMLHttpRequests do not work in IE11 and could possibly suggest any alternatives?

Edit: Well magic stuff occurred and now its working.

Refer to title question. I am very new to javascript and used it while making an html page for work on my laptop that works perfectly fine with Internet Explorer 8, but it does not work on anyone's puter that has installed IE11. As we are all supposed to upgrade to IE11 (nobody told me until this issue came up), I need to figure out why this works in IE8 and not IE11. I am guessing that the XMLHttpRequests are the issue. Basically I am using the xmlhttprequests to check if some files exist before posting them to the html page.

I'm in the process of requesting and getting approved to install IE11, but was hoping someone could clarify if I am correct that XMLHttpRequests do not work in IE11 and could possibly suggest any alternatives?

Edit: Well magic stuff occurred and now its working.

Share Improve this question edited Sep 1, 2015 at 18:44 Orthogonal Don asked Aug 28, 2015 at 21:10 Orthogonal DonOrthogonal Don 231 silver badge4 bronze badges 7
  • XMLHttpRequest is an Internet-wide standard. It would be wrong and very surprising if any modern browser didn't implement it. I think your guess is wrong. – Barmar Commented Aug 28, 2015 at 21:13
  • If you want to know which browsers support particular features, go to www.caniuse.. – Barmar Commented Aug 28, 2015 at 21:15
  • How about posting your java script so we can look at it and try and figure out why it doesn't work in IE 11? – vcsjones Commented Aug 28, 2015 at 21:16
  • caniuse. says that IE11 has partial support for XMLHttpRequest advanced features. The notes say that it's missing support for json as responseType. It doesn't even have a section for basic support of XMLHttpRequest, presumably because it's supported almost everywhere. – Barmar Commented Aug 28, 2015 at 21:20
  • 1 your routine might be sniffing for "MSIE" to fork support (instead of using object detection), which would trigger on IE11, and thus it would try to use ActiveX controls that were remove in IE11... – dandavis Commented Aug 28, 2015 at 21:42
 |  Show 2 more ments

1 Answer 1

Reset to default 6

Short answer: Yes.

Long Answer: Internet Explorer has supported XHR (XMLHTTPResponse) since IE 7. Since then it has improved considerably. There are many things that can stop code from working. Have you tried running your code in IE 11 and then checking the debug console to see what it says?

Unfortunately, since you did not post any code for us to examine; we can't really do much for you except answer your very specific and easily searchable question.

Remendation: Use jQuery to do AJAX requests instead and examine the debug console for errors.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744761399a4592195.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信