I need to pause a script to allow a web page to finish downloading so I can reference the document object. The do loop in the following code doesn’t work – it causes the script to hang as if in an infinite loop. Does anyone have any suggestions?
Set ps = GroupWise.PortalManager.Portals
Set p = ps.Add
p.Caption = “eWeber Test”
p.TabCaption = “eWeber”
p.ID = “p1”
p.NavigationControlsEnabled = True
p.URLInputEnabled = True
p.URL = “http://weber.edu/eWeberTest”
do until nReady = 4
nReady = p.ReadyState
set oDoc = p.document
- You must be logged in to reply to this topic.