BTMExpert
asked on
Embed text weather condition and temp for zip using Javascript / Ajax
I was wondering if anyone knew of a javascript code sniplet that I could feed a zip code too and it would spit back out the weather condition and temp in plain text format that I could then style using css
what I want is to feed it something like a zip and it return "sunny 65" or something along those lines that I could then style to match my site
what I want is to feed it something like a zip and it return "sunny 65" or something along those lines that I could then style to match my site
ASKER
something like that second option would work
but I have no idea on how to implement that using javascript or ajax
the first option wouldn't work because I want just the text of the temp and condition no graphics or anything
but I have no idea on how to implement that using javascript or ajax
the first option wouldn't work because I want just the text of the temp and condition no graphics or anything
Perhaps some of these would help point you in the right direction on how to consume the xml service.
http://www.developer.com/net/asp/article.php/3657826
http://msdn.microsoft.com/en-us/library/ms173022(VS.80).aspx
http://www.codeproject.com/KB/dotnet/MyXamlWeather.aspx (inclusdes source code)
FYI NOAA also has an xml feed. Ther pages contains more information on the feed and it's use than wunderground.com.
Take a Look: http://www.nws.noaa.gov/xml/#use_it
http://www.developer.com/net/asp/article.php/3657826
http://msdn.microsoft.com/en-us/library/ms173022(VS.80).aspx
http://www.codeproject.com/KB/dotnet/MyXamlWeather.aspx (inclusdes source code)
FYI NOAA also has an xml feed. Ther pages contains more information on the feed and it's use than wunderground.com.
Take a Look: http://www.nws.noaa.gov/xml/#use_it
ASKER
is it even possible to load and use this in Javascript?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.weather.com/services/oap.html
or for a more customized solution try:
http://wiki.wunderground.com/index.php/API_-_XML