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.
The reason I am trying to do this is for a quick way to scroll through files in a directory without using php.
Scenario:
Load the directory, grab the first three files (img files actually), and DISPLAY on the page.
I have tried the following:
$.load("directory"); // This is a generalization of what I've written
$.get("directory");
both of these fail, I get an error in my console saying: 404 not found
, But the directory does in fact exist.
Is this even possible with ajax?