Connecting Tech Pros Worldwide Help | Site Map

Netscape and ActiveX?

kaeli
Guest
 
Posts: n/a
#1: July 20th, 2005, 01:00 PM

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: July 20th, 2005, 01:00 PM

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: July 20th, 2005, 01:00 PM

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: July 20th, 2005, 01:00 PM

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Netscape with Microsoft Access denelson answers 7 January 19th, 2006 05:25 PM
Determining if ActiveX Controls are Disabled DartmanX answers 18 October 17th, 2005 09:55 AM
File.txt A.M. answers 12 July 23rd, 2005 01:20 PM
Tricky javascript/activex object problem joebob answers 4 July 23rd, 2005 12:30 PM
populate <option>s from a file using Netscape? George Hester answers 6 July 20th, 2005 02:29 PM