title: Ajax in Jquery does not work from local file
body: <p>I created simple html file with simple ajax.</p>
  
  <p><strong>index.html</strong>:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; Charset=UTF-8"&gt;
  &lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="content"&gt;&lt;/div&gt;
  
      &lt;script&gt;
          function show()
          {
                  $.ajax({
                  url: "2.html",
                  cache: false,
                  success: function(html){
                      $("#content").html(html);
                  }
              });
          }
  
          $(document).ready(function(){
              show();
              setInterval('show()',1000);
          });
      &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>File <strong>2.html</strong> located in the same directory as the file <strong>index.html</strong>. And contains for example:</p>
  
  <pre><code> &lt;p&gt;ssss hkl jh lkh &lt;b&gt;d1111&lt;/b&gt;&lt;/p&gt;
  </code></pre>
  
  <p>When I run the <strong>index.html</strong> on the webserver, everything works. But if you run file <strong>index.html</strong> on the computer as a local file ajax not working. How to fix it?</p>