Yahoo forecastjson gives XML error

bibu99

New Member
After browsing through this site, I found that you can get Yahoo weather in a JSON format using forecastjson.When I run:\[code\]$.getJSON("http://weather.yahooapis.com/forecastjson?w=2112762724", function(data){ ...});\[/code\]I get the following error: \[code\]XMLHttpRequest cannot load http://weather.yahooapis.com/forecastjson?w=2112762724. Origin null is not allowed by Access-Control-Allow-Origin.\[/code\]I've gotten this error before but its normally because I'm trying to load XML cross domain but this is clearly JSON. If you go to the link in the getJSON function, it shows JSON data. Does anyone know why I am getting this error?Thanks
 
Back
Top