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
BTMExpertAsked:
Who is Participating?
 
BTMExpertConnect With a Mentor Author Commented:
I found the solution myself by using jquery to load an xml file and pull it apart
0
 
QuestionManACommented:
Wunderground.com and weather.com offer something similar.

http://www.weather.com/services/oap.html

or for a more customized solution try:
http://wiki.wunderground.com/index.php/API_-_XML
0
 
BTMExpertAuthor Commented:
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
0
 
QuestionManACommented:
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

0
 
BTMExpertAuthor Commented:
is it even possible to load and use this in Javascript?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.