admin管理员组文章数量:1392007
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
asresponseType
. 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
1 Answer
Reset to default 6Short 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.
本文标签: javascriptDo XMLHttpRequests work in internet explorer 11Stack Overflow
版权声明:本文标题:javascript - Do XMLHttpRequests work in internet explorer 11? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744761398a2623775.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论