Connecting Tech Pros Worldwide Forums | Help | Site Map

Netscape and ActiveX?

kaeli
Guest
 
Posts: n/a
#1: Jul 20 '05

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>&nbsp; </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>

--
~kaeli~
Black holes were created when God divided by 0.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace


Martin Honnen
Guest
 
Posts: n/a
#2: Jul 20 '05

re: Netscape and ActiveX?




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>&nbsp; </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/

kaeli
Guest
 
Posts: n/a
#3: Jul 20 '05

re: Netscape and ActiveX?


In article <3fbcc81c$1@olaf.komtel.net>, mahotrash@yahoo.de enlightened
us with...[color=blue]
>
> 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.
>[/color]

I didn't think so.
I guess we're stuck with WebFocus for cross-browser reporting.

Thanks!


--
~kaeli~
The man who fell into an upholstery machine is fully
recovered.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Marek A. Stepien
Guest
 
Posts: n/a
#4: Jul 20 '05

re: Netscape and ActiveX?


Martin Honnen wrote:[color=blue]
> 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.[/color]

Actually, you can change some settings in the defaults/pref/activex.js
to make Netscape run all the AX controls.

See http://www.iol.ie/~locka/mozilla/plugin.htm.


--
| Marek A. Stepien | marcoos dot org | Linux user #153004 |
| Powered by Mozilla Thunderbird. Your mail, your way. |

Closed Thread