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
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
Wunderground.com and weather.com offer something similar.


or for a more customized solution try:
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
Perhaps some of these would help point you in the right direction on how to consume the xml service.

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

BTMExpertAuthor Commented:
is it even possible to load and use this in Javascript?
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.