XMLHttpRequest cannot load file. Origin null is not allowed by Access-Control-Allow-Origin
<pre><code> $.getJSON('test1.json', function(data) 
  {
  for (i in data.conferences) {
  var item = data.conferences[i];
  array1.push({
  cid:item.id,
  confName: item.cname,
  confStart:item.start
  }); }
});
</code></pre>

<p>I use the function for getting values from java to jquery. In chrome and opera shows same error, but it works on IE and mozilla.<br>
Give me a solution for that please.</p>

<blockquote>
  <p>XMLHttpRequest cannot load file:///C:/Users/winnova1/Desktop/tree/conferences/test1.json. Origin null is not allowed by Access-Control-Allow-Origin.<br>
  Uncaught TypeError: Cannot read property 'conferences' of null </p>
</blockquote>
