ErrorLINE1CHAR1
Programmer
So here is the problem..
I have a script to get the XML sheet from Y! weather
the problem is that the only browser that saves the XML sheet properly is Google Chrome, it actually views the XML markup on the webpage and CTRL+S will give me save as and i just save that XML sheet manually then my app has no problem updating the weather info.
BUT this app is for a group with no permissions to set GC as the default browser let alone install it to the computer.
SO Google Chrome is on the groups PC's in portable format,
but if i create the script for them and try to have it follow the path to Google chrome McAfee Deletes is as soon as you save the file as .vbs . . . and I dont want to spend any more time to write this to a Function and have it Window_OnLoad, as well as iTimerID.
this is the code i have but its only opening it in IE which displays it in RSS Feed format and does not do the job. . .
in the apps main code i used iTimerID to re-run this script every 1.5 hrs (assuming that Y! has updated the weather info by that time. . .)
So as of now that does not work.. any one know a work around to have it GET the ACTUAL XML form not FEED form? (and yes i use y to remind me that its info from Yahoo! )
Devon
Intel Corp. (HF)
I have a script to get the XML sheet from Y! weather
the problem is that the only browser that saves the XML sheet properly is Google Chrome, it actually views the XML markup on the webpage and CTRL+S will give me save as and i just save that XML sheet manually then my app has no problem updating the weather info.
BUT this app is for a group with no permissions to set GC as the default browser let alone install it to the computer.
SO Google Chrome is on the groups PC's in portable format,
but if i create the script for them and try to have it follow the path to Google chrome McAfee Deletes is as soon as you save the file as .vbs . . . and I dont want to spend any more time to write this to a Function and have it Window_OnLoad, as well as iTimerID.
this is the code i have but its only opening it in IE which displays it in RSS Feed format and does not do the job. . .
in the apps main code i used iTimerID to re-run this script every 1.5 hrs (assuming that Y! has updated the weather info by that time. . .)
Code:
Set yXMLHTTP = CreateObject("MSXML2.XMLHTTP.3.0")
yXMLHTTP.Open "GET", "[URL unfurl="true"]http://weather.yahooapis.com/forecastrss?w=12798480&u=f.xml",False[/URL]
yXMLHTTP.Send
If yXMLHTTP.Status = 200 Then
Set yStream = CreateObject("ADODB.Stream")
yStream.Open
yStream.Type = 1
yStream.Write yXMLHTTP.responseBody
yStream.SaveToFile "F:\WeatherCast\97124.xml"
yStream.Close
End If
So as of now that does not work.. any one know a work around to have it GET the ACTUAL XML form not FEED form? (and yes i use y to remind me that its info from Yahoo! )
Devon
Intel Corp. (HF)