title: Whats the easiest way to create a weather-forecast?
body: <p>Im developing an web app. Here I created a popup-window in JavaScript. Now I like to create inside this window a weather-forecast.</p>
  
  <p>What is the easiest way to do this?</p>
  
  <p>I did it like here: <a href="https://stackoverflow.com/questions/2613795/get-weather-from-yahoo-with-jquery">Get weather from Yahoo with jQuery</a></p>
  
  <pre><code>$(".popup-button").click(function(evt){
  //prevent default link behavior
      evt.preventDefault();
  
  //get id from clicked element
  var id = $(this).attr("id");
  
  switch (id) {
      case "popup-button-wetter":
          //centering with css
          centerPopup($("#popup-wrapper-wetter"));
          //load popup  
          loadPopupadditional($("#popup-wrapper-wetter"));
          //get weather
          getWeather ()
          break;
            ......
  
  
  function getWeather () {
       $.get("http://weather.yahooapis.com/forecastrss?w=782458&amp;u=c", function(data){
                     console.log("Data Loaded: " + data);
                   });
              }
      });
  </code></pre>
  
  <p>but then I got this error:</p>
  
  <p>XMLHttpRequest cannot load <a href="http://weather.yahooapis.com/forecastrss?w=782458&amp;u=c" rel="nofollow noreferrer">http://weather.yahooapis.com/forecastrss?w=782458&amp;u=c</a>. Origin file:// is not allowed by Access-Control-Allow-Origin.</p>
  
  <p>What does it mean?</p>