title: using ajax to get local text file content
body: <p>I have 2 files named <code>index.html</code> and <code>mytext.txt</code> in the same folder. I want to get contents of <code>mytext.txt</code> using an ajax call in the <code>index.html</code>. I use this code but it is only working in firefox not chrome:</p>
  
  <pre><code>$.ajax({
      url: "mytext.txt",
      dataType: 'text',
      success: function(data) {
          alert(data);
      }
  });
  </code></pre>
  
  <p>I am opening index.html simply from explorer not server!</p>