none
IE11 中使用 ActiveXObject RRS feed

  • Question

  •  最近有很多客户反馈,我们的网站中使用的的的ActiveXObject对象在一直在报错。我在百度上边搜索了很多资料,都说IE11已经不在支持的ActiveXObject的对象的使用。但是我们网站中的一个控件需要XML数据源。原本使用的ActiveXObject来生成XML数据的例如

    var HttpSend = new ActiveXObject(“Microsoft.XMLHTTP”);

    HttpSend.open(“GET”,网址,虚假的);

    HttpSend.send();

    HttpSend.reseXML.createProcessingInstruction(“xml”,“version = \”1.0 \“encoding = \”gb2312 \“”);

    var root = HttpSend.responseXML;

    var xmlDoc = new ActiveXObject(“Microsoft.XMLDOM”);

    xmlDoc.async = TRUE;

    xmlDoc.load(根);

    IE11以前的版本通过上述代码就可以将数据源转化为XML数据。现在的问题是如何在IE11环境中获取最终的XML数据?

    我尝试的方法:

    var xmlDoc = new XMLHttpReques();

    var HttpSend = new XMLHttpRequest();

    HttpSend.open(“获取”,网址,虚假的);

    HttpSend.send();

    Httpsend.responseXML.createProcessingInstruction(“xml”,“version = \”1.0 \“encoding = \”gb2312 \“”);

    var root = HttpSend.response.XML;

    在ie11中使用jq的方法$ .parseXML(root)转化xml

    在这里有一个问题。我不太确定到底是因为IE11的原因还是JQ方法的问题。转化后的结果不是XML标准格式,一直是报错。请教一下各位有没有这种类似的问题。现在已经研究了三天一直没有突破。

    Monday, June 3, 2019 7:54 AM

All replies

  • Hi Liuhuairi,

    I want to confirm some information regarding the issue that may help to narrow down the issue.

    Which version of Internet Explorer your clients are using?

    what exact error message you got in IE?

    Is this ActiveX control was developed by you or it is a third party control?

    Did your clients had installed any latest updates caused this issue in IE? 

    Please try to provide above information, we will try to provide further suggestions for the issue.

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, June 3, 2019 9:21 AM
    Moderator