kaeli wrote:
[color=blue]
> I truely doubt this is possible from everything I've read (without some
> sort of plugin), but can this simple script be made into a javascript
> (instead of vbscript) that would work on Netscape 6+?
>
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
>
> <body>
> <p>IE only Word export test - test - hi there</p>
> <p> </p>
> <script type="text/vbscript">
> Set wObj = CreateObject("Word.Application")
> Set doc = wObj.Documents.Add()
> wObj.Selection.TypeText("Hi there!")
> wObj.Visible = true
> </script>
> </body>
> </html>[/color]
Well, Netscape 7.1 has a function named
GeckoActiveXObject
that is meant to cover JScript's
ActiveXObject
but as far is I understand it currently only allows Windows Media Player
to be instantiated.
When I try
var word = new GeckoActiveXObject('Word.Application');
I get a JavaScript error
Error: uncaught exception: [Exception... "Unable to create an instance
of the desired COM classCOM Error Result = 80004005" nsresult:
"0x80570039 (NS_ERROR_XPC_COM_CREATE_FAILED)"
so I don't think there is a way, not even with Netscape 7.1.
And nobody seems to know for sure whether there will be any future
Netscape releases.
--
Martin Honnen
http://JavaScript.FAQTs.com/