
May 26th, 2005, 08:59 AM
|
|
Registered User
|
|
Join Date: May 2005
Posts: 10
Time spent in forums: 2 h 30 m 37 sec
Reputation Power: 0
|
|
|
'WScript.Network'
Hi there I have an html page using a VBScript that when I load the page locally and accept the Active X prompts it works correctly however if I run it through IIS and load the page nothing appears and the status is done but with errors on the page.
The error is:
ActiveX component can't create object: 'WScript.Network'
The code I m using is:
Code:
<script type="text/vbscript">
Set network = CreateObject("WScript.Network")
document.write network.UserName
document.write "<br>"
document.write network.ComputerName
document.write "<br>"
document.write Network.UserDomain
document.write "<br>"
</script>
Can anyone help please??
|