title: Get Directory Files with ajax
body: <p>I can't find anything at all on the web about what I am trying to achieve. I am simply trying to load a directory with jquery Ajax but it just seems to fail miserably. </p>
  
  <p>The reason I am trying to do this is for a quick way to scroll through files in a directory <strong>without using php.</strong> <br></p>
  
  <h1>Scenario:</h1>
  
  <blockquote>
    <p>Load the directory, grab the first three files (img files actually), and DISPLAY on the page.</p>
  </blockquote>
  
  <p><br>
  I have tried the following:<br></p>
  
  <pre><code>$.load("directory"); // This is a generalization of what I've written
  $.get("directory"); 
  </code></pre>
  
  <p>both of these fail, I get an error in my console saying: <code>404 not found</code>, But the directory does in fact exist.</p>
  
  <p>Is this even possible with ajax? </p>