title: Is there any way to read file in jquery or javascript with file:// protocol?
body: <p>I know few firefox version allow to read file without <code>http</code> or <code>https</code>, Is there any way to read file in jquery or javascript with <code>file://</code> protocol ? I am developing static application, which works well with web server, if I am able to do something similar to the job of below <code>Jquery.ajax</code> function with protocol being <code>file://</code> I will be very happy</p>
  
  <p><strong>This works well if I have web server (<code>http/https</code>) what can be done for <code>file://</code> ?</strong></p>
  
  <pre><code>$.ajax({
          type: "GET",
          url: "http://localhost/something/somefile.txt",
          dataType: "text",
          success: function(data){ dothis(data); }
         });
  </code></pre>
  
  <p>What I will do if I don't have web server ? I know due to <a href="https://www.google.co.in/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=5&amp;cad=rja&amp;uact=8&amp;ved=0CDAQFjAEahUKEwji7a6z0uTIAhWCFJQKHUvpAU4&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FSame-origin_policy&amp;usg=AFQjCNE6A0d-w9WfIkW8wsrfucTNFgW9Rw&amp;sig2=sA9QFud7T8P3yAlnV-hRcQ&amp;bvm=bv.106130839,d.dGo" rel="nofollow">SOP</a> (Same origin policy) modern browsers doesn't allow. Is there any alternate method to do the similar job so that which does support all browser with protocol being <code>file://</code> ?</p>