
VBScript "Object Required WScript" Error
You are not using the Windows Script Host as the host of the script, as
Walter intended. If you are using an HTML host, like IE, then use
something like ...
<html>
<script language=vbscript>
window.resizeTo screen.width,screen.Height
window.moveTo 0,0
Sub Body_onload(obj)
obj.innerText = screen.AvailWidth & "x" & screen.AvailHeight
end sub
</script>
<body onload="Body_Onload document.body"></body>
</html>
Tom Lavedas
-----------
http://www.pressroom.com/~tglbatch/
Quote:
> Anyone tell me what is wrong with this??? I got this from another
> post but it errors out on me :{
> <script language=VBScript>
> sub btnHelpDesk_onClick
> set objIE = WScript.CreateObject("InternetExplorer.Application")
> objIE.AddressBar = False
> objIE.MenuBar = False
> objIE.ToolBar = False
> objIE.StatusBar = True
> objIE.navigate "/helpdesk"
> While objIE.busy
> WScript.Sleep 20
> Wend
> objIE.Top= 0
> objIE.Left = 0
> objIE.Width = IE.Document.ParentWindow.Screen.AvailWidth
> objIE.Height = IE.Document.ParentWindow.Screen.AvailHeight
> objIE.Visible = True 'onClick="window.open('/helpdesk', 'HD',
> config='height=560, resizable=yes, width=800,top=0,left=0,scrollbars=yes')"
> end Sub
> </script>
> --
> Curt