Posted by member 102398 on 2004-02-09 17:51:52 link
I just don't understand why it doesn't do anything. At first NAV would ask me if I wanted to let it run so I said yes, later when I had it disabled and MyIE2 open it would attempt to retrieve info from the page but it would say: server was not responding even though if I go to the actual page it was up, so it led me to believe it was something wrong with the code in the script that retrieves the html to be stripped down to the good part but I didn't really understand the syntax in that section of GetWeather.wsf
Now it's back to giving me just the arrow with hourglass combo after I click Update Weather Info then immediately back to regular arrow.
Set http = createObject("microsoft.xmlHttp")
http.open "GET",WeatherURL,False 'Synchronous mode - wait for URL to respond.
If Err.Number 0 Then
MsgBox WeatherURL & " " & Err.Description
Err.Clear
WScript.Quit
End If
http.send ""
if (http.statustext "OK") then
MsgBox "ERROR: HTTP status was "&http.statustext & vbCRLF & vbCRLF & apology
' MsgBox apology
WScript.Quit
End If
rHTML = http.responsetext
http.open "GET",WeatherURL,False 'Synchronous mode - wait for URL to respond.
If Err.Number 0 Then
MsgBox WeatherURL & " " & Err.Description
Err.Clear
WScript.Quit
End If
http.send ""
if (http.statustext "OK") then
MsgBox "ERROR: HTTP status was "&http.statustext & vbCRLF & vbCRLF & apology
' MsgBox apology
WScript.Quit
End If
rHTML = http.responsetext
Now it's back to giving me just the arrow with hourglass combo after I click Update Weather Info then immediately back to regular arrow.