Using WSH in Netscape 
Author Message
 Using WSH in Netscape

Hello,

Can anyone tell me if it is possible to use WSH in Netscape? E.g. the
following page works perfectly in IE:

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>

<script>

function WScript()
{
var WSHNetwork = new ActiveXObject("WScript.Network");
alert(WSHNetwork.UserName);

Quote:
}

</script>

<form>

<input type="button" name="cmdWScript" id="cmdWScript" value="WScript"
onClick="WScript();">

</form>

</BODY>
</HTML>

The user clicks the button and an alert pops up showing their network logon.
I realise that the ActiveXObject is IE-only functionality, but is this the
only way to integrate WSH? Is there a possibility for Netscape?

Any assistance gratefully received.

Best regards,

Mark Rae



Sun, 22 Sep 2002 03:00:00 GMT  
 Using WSH in Netscape
Netscape doesn't support ActiveX.  The ActiveXObject() object is a JScript feature only...

--
Michael Harris
MVP Scripting

Hello,

Can anyone tell me if it is possible to use WSH in Netscape? E.g. the
following page works perfectly in IE:

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>

<script>

function WScript()
{
var WSHNetwork = new ActiveXObject("WScript.Network");
alert(WSHNetwork.UserName);

Quote:
}

</script>

<form>

<input type="button" name="cmdWScript" id="cmdWScript" value="WScript"
onClick="WScript();">

</form>

</BODY>
</HTML>

The user clicks the button and an alert pops up showing their network logon.
I realise that the ActiveXObject is IE-only functionality, but is this the
only way to integrate WSH? Is there a possibility for Netscape?

Any assistance gratefully received.

Best regards,

Mark Rae



Sun, 22 Sep 2002 03:00:00 GMT  
 Using WSH in Netscape

Quote:
> Netscape doesn't support ActiveX.  The ActiveXObject() object is a JScript
feature only...

> --
> Michael Harris
> MVP Scripting

Yes, I realise that. I just wondered if that was the *only* way to use WSH
in a browser.

Thanks,

Mark

Quote:




Quote:
> Hello,

> Can anyone tell me if it is possible to use WSH in Netscape? E.g. the
> following page works perfectly in IE:

> <HTML>
> <HEAD>
> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
> </HEAD>
> <BODY>

> <script>

> function WScript()
> {
> var WSHNetwork = new ActiveXObject("WScript.Network");
> alert(WSHNetwork.UserName);
> }

> </script>

> <form>

> <input type="button" name="cmdWScript" id="cmdWScript" value="WScript"
> onClick="WScript();">

> </form>

> </BODY>
> </HTML>

> The user clicks the button and an alert pops up showing their network
logon.
> I realise that the ActiveXObject is IE-only functionality, but is this the
> only way to integrate WSH? Is there a possibility for Netscape?

> Any assistance gratefully received.

> Best regards,

> Mark Rae



Sun, 22 Sep 2002 03:00:00 GMT  
 Using WSH in Netscape
The WSH object model is implemented as COM objects in wshom.ocx.  How else would you use it if not
as an ActiveX object?

--
Michael Harris
MVP Scripting


Quote:
> Netscape doesn't support ActiveX.  The ActiveXObject() object is a JScript
feature only...

> --
> Michael Harris
> MVP Scripting

Yes, I realise that. I just wondered if that was the *only* way to use WSH
in a browser.

Thanks,

Mark

Quote:




Quote:
> Hello,

> Can anyone tell me if it is possible to use WSH in Netscape? E.g. the
> following page works perfectly in IE:

> <HTML>
> <HEAD>
> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
> </HEAD>
> <BODY>

> <script>

> function WScript()
> {
> var WSHNetwork = new ActiveXObject("WScript.Network");
> alert(WSHNetwork.UserName);
> }

> </script>

> <form>

> <input type="button" name="cmdWScript" id="cmdWScript" value="WScript"
> onClick="WScript();">

> </form>

> </BODY>
> </HTML>

> The user clicks the button and an alert pops up showing their network
logon.
> I realise that the ActiveXObject is IE-only functionality, but is this the
> only way to integrate WSH? Is there a possibility for Netscape?

> Any assistance gratefully received.

> Best regards,

> Mark Rae



Sun, 22 Sep 2002 03:00:00 GMT  
 Using WSH in Netscape

In microsoft.public.scripting.wsh, Michael Harris

Quote:
>The WSH object model is implemented as COM objects in wshom.ocx.  How else would
>you use it if not
>as an ActiveX object?

I think he means to create it using methods in NS...

Would an <object> tag do it?

--
Robert Bradley

I am not a mindreader, so I don't know everything.



Mon, 23 Sep 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. HowI should do to setup netscape's proxy config through wsh

2. HowI should do to setup netscape's proxy config through wsh

3. problem using gsview as netscape previewer

4. Printing Using Netscape

5. Help on Visibilit/Display in IE and Netscape when using forms

6. Problem with SESSION VARIABLES using netscape when opening a new instance of the browser

7. Please Help me Randomize Pictures in NetScape - The differences between IE and NetScape

8. Using XML with WSH

9. Using the W3 DOM from WSH

10. sending e-mail using jscript and wsh

11. Manipulating ACL's using ADSI and WSH

12. Create and Edit Files from WSH using VBScript

 

 
Powered by phpBB® Forum Software