title: How can I access an online JSON file from offline? (javascript)
body: <p>I am making a weather website for my school project using the <a href="http://www.wunderground.com/weather/api/" rel="nofollow">Wunderground Weather API</a>. This is the code I am using to get the JSON data:</p>
  
  <pre><code>$.getJSON("http://api.wunderground.com/api/&lt;apikey&gt;/conditions/q/" + wlocation + ".json", function(data){
      alert(data);
  });
  </code></pre>
  
  <p>The <code>&lt;apikey&gt;</code> is where I put my API key, and the <code>$</code> character is just a shortcut for JQuery.</p>
  
  <p>When I open this webpage, which is local, not published, no alert pops up and I get the error:</p>
  
  <pre><code>XMLHttpRequest cannot load http://api.wunderground.com/api/&lt;apikey&gt;/conditions/q/&lt;myzipcode&gt;.json. Origin null is not allowed by Access-Control-Allow-Origin. 
  </code></pre>
  
  <p>After doing some research on this error, it sounds like I might have to create a web server. However, for the project, we need to turn it in as a folder of .html and other "web files". Is there another way to do this or do I have to make a web server? This project is due soon, so any help is appreciated!</p>