views:

4196

answers:

4

Hi, 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:

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

etc. in Javascript.

A: 

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

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).

Links:

Windows Scripting Host

Wine

Edit: Had Wine confused with Mono. Fixed now.

dsm
what has mono got to do with it? mono is an implementation of .NET
Osama ALASSIRY
+2  A: 

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

Osama ALASSIRY
You could try installing the Windows version of Firefox in Wine.Linux Firefox, though, you'd have to recompile, with some work to add the Wine check. I don't think you can do this for client code.
Peter Stone
How would ActiveX work with Firefox on Windows?
Osama ALASSIRY
A: 

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.

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

Hi, if I had control over this page, then I would do it. I just need to link to it, but it doesn't work for Linux guys.
Grzenio
A: 

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