ASP/XML Object Problem
Hi,
I am trying to use an XML object in ASP to retrieve the current weather condition. Depending on the weather, a particular flash file will then be displayed. The problem, which I experienced today, is that the site that I was trying to retrieve the weather from was down and, obviously, I received an error on my end.
The error that I received was:
msxml3.dll error '800c0005'
The system cannot locate the resource specified.
/redesign/includes/weather.asp, line 19
Part of the code that is generating the error is below:
myZip = 12487 'Ulster Park, NY
URL = "http://www.wunderground.com/cgi-bin/findweather/getForecast?query="&myZip
'create our XMLHTTP object
set http_obj = createObject("Microsoft.XMLHTTP")
call http_obj.Open("GET",URL,false)
call http_obj.Send()
Line 19 is the line "call http_obj.Send()". Is there any way to have some sort of error control in this code (i.e. If the site is down, just display a default Flash movie)?
Thanks,
|