VBScript "Object Required WScript" Error 
Author Message
 VBScript "Object Required WScript" Error

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

(Remove NOSPAM for E-Mail Replies)
http://www.*-*-*.com/
---------------------------------------------------------------
** And The Geek Shall Inherit The Earth
---------------------------------------------------------------



Wed, 29 Oct 2003 02:59:38 GMT  
 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



Wed, 29 Oct 2003 03:48:39 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Error, Object Required "Wscript"

2. "Object Required" error

3. "Object Required" error

4. detecting "object required" or null object

5. detecting "object required" or null object

6. "Object Required" error

7. help: error 424 "Object Required"

8. Help: "Object Required" - error 424

9. "Object required" error message

10. window.open - "Object required"

11. Object Required "txtPrice"

12. Set WSHShell = WScript.CreateObject("WScript.Shell")

 

 
Powered by phpBB® Forum Software