• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I am trying get current(instant) weather for my city Polis, Cyprus in my site

 
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying get current weather for my city Polis, Cyprus
but I do not make it, in the
<body>
<div id="d"></div>

I get nothing in test page, can you help...you may download files.js from test page below:

http://developer.yahoo.com/weather/ // here format of rss xml
http://weather.yahooapis.com/forecastrss?p=CYXX0009&u=c

test page
http://www.paphoscarhire.mobi/weather/index.html

You may get help from:
http://www.w3schools.com/dom/dom_nodes_get.asp

javascript permits connections from yahoo weather (external servers)?
where found ready made scripts get yahoo weather?

Since I want first success get the weather and after the others, well do you find any error at:

http://www.paphoscarhire.mobi/weather/scripts/thumbnails-xml.js

can you give any complete script or other's webpage(script), that do exactly this?
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yahoo weather does not offer a JSON format so you would have to use a server to fetch the file.
Other option is to use a service that has a JSON format.

http://www.worldwildweather.com/api_javascript

Eric
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you mean JSON format , permits external server json data exchange? yes permits / NO
reply
    Bookmark Topic Watch Topic
  • New Topic