Search code examples
javascriptdatetimetemperature

Day/Date/Time/Temperature Info bar


Thanks for looking at my question.

I am looking to have a London information bar on a website. Something that will show the following information:

London, England: 9:27PM Friday 12 February 10°C/50°F

Can anyone please help?

Thanks :)

TO LET ALL KNOW, I DO JUST WANT IT FOR LONDON. NO MATTER WHERE YOU ARE VIEWING IT FROM. NOTHING MORE COMPLICATED

:D


Solution

  • In looking into this a little recently I came upon this IBM developerWorks page about XML processing, describing 4 approaches to this sort of problem. However, unless you can access a server to either store the data or serve as a proxy, the last approach (using JSON and an intermediate (Yahoo in this case) service for the weather info, documented in Part 3) is probably best.