Connecting Tech Pros Worldwide Help | Site Map

Netscape and ActiveX?

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 20th, 2005, 12:00 PM
kaeli
Guest
 
Posts: n/a
Default Netscape and ActiveX?


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


  #2  
Old July 20th, 2005, 12:00 PM
Martin Honnen
Guest
 
Posts: n/a
Default 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/

  #3  
Old July 20th, 2005, 12:00 PM
kaeli
Guest
 
Posts: n/a
Default 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

  #4  
Old July 20th, 2005, 12:00 PM
Marek A. Stepien
Guest
 
Posts: n/a
Default 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. |

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.