在Linux中使用Javascript中的ActiveX对象(在Firefox中)

时间:2022-12-06 17:20:35

It's not quite a "programming" question, but I hope its related closely enough.

这不是一个“编程”问题,但我希望它的相关性足够紧密。

Do you know if it is possible to configure the browser in Linux (e.g. Firefox) to use Wine to create ActiveX objects? I would like to handle web pages that use:

您知道是否可以在Linux(例如Firefox)中配置浏览器以使用Wine创建ActiveX对象?我想处理使用的网页:

var xmlDocument = new ActiveXObject( Msxml2.DOMDocument.4.0 )

etc. in Javascript.

在Javascript中等。

4 个解决方案

#1


2  

I think you can only do that in Internet Explorer on Wine

我想你只能在Wine上的Internet Explorer中做到这一点

#2


0  

ActiveXObject is part of the Windows Script host, and not available in Linux unless you can use Wine to install it.

ActiveXObject是Windows脚本宿主的一部分,除非您可以使用Wine进行安装,否则在Linux中不可用。

As a side issue, the actual ActiveXObject is an instance of a windows application, and not generally available in Linux (especially not the MS Office suite).

作为一个侧面问题,实际的ActiveXObject是Windows应用程序的一个实例,通常在Linux中不可用(尤其不是MS Office套件)。

Links:

Windows Scripting Host

Windows脚本主机

Wine

Edit: Had Wine confused with Mono. Fixed now.

编辑:让酒与Mono混淆。现在修复了。

#3


0  

If you just want an xml document you can do that via standard javascript. Their is no need for ActiveX. Simply ask the document to parse the xml for you. Have a look on Mozilla Developers Centre. They have very good JS docs.

如果你只想要一个xml文档,你可以通过标准的javascript来做到这一点。他们不需要ActiveX。只需要求文档为您解析xml。看看Mozilla开发人员中心。他们有非常好的JS文档。

On another note, if you want cross browser web pages steer clear of ActiveX. Especailly with all its security holes.

另一方面,如果您希望跨浏览器网页避开ActiveX。特别是它的所有安全漏洞。

#4


0  

you can see flash in firefox of linux. try used flash.

你可以在Firefox的firefox中看到flash。尝试使用闪光灯。

#1


2  

I think you can only do that in Internet Explorer on Wine

我想你只能在Wine上的Internet Explorer中做到这一点

#2


0  

ActiveXObject is part of the Windows Script host, and not available in Linux unless you can use Wine to install it.

ActiveXObject是Windows脚本宿主的一部分,除非您可以使用Wine进行安装,否则在Linux中不可用。

As a side issue, the actual ActiveXObject is an instance of a windows application, and not generally available in Linux (especially not the MS Office suite).

作为一个侧面问题,实际的ActiveXObject是Windows应用程序的一个实例,通常在Linux中不可用(尤其不是MS Office套件)。

Links:

Windows Scripting Host

Windows脚本主机

Wine

Edit: Had Wine confused with Mono. Fixed now.

编辑:让酒与Mono混淆。现在修复了。

#3


0  

If you just want an xml document you can do that via standard javascript. Their is no need for ActiveX. Simply ask the document to parse the xml for you. Have a look on Mozilla Developers Centre. They have very good JS docs.

如果你只想要一个xml文档,你可以通过标准的javascript来做到这一点。他们不需要ActiveX。只需要求文档为您解析xml。看看Mozilla开发人员中心。他们有非常好的JS文档。

On another note, if you want cross browser web pages steer clear of ActiveX. Especailly with all its security holes.

另一方面,如果您希望跨浏览器网页避开ActiveX。特别是它的所有安全漏洞。

#4


0  

you can see flash in firefox of linux. try used flash.

你可以在Firefox的firefox中看到flash。尝试使用闪光灯。