freefall
06-09-2003, 12:16 PM
Is there a way, or what is the best way to find out the names of files in a certain directory using JS?
I have recently made a JS gallery on my website which loads images based on the prefix of their name and their number (ie church1, church2, etc.). I want to make the gallery automatically look to see how many such images are in the directory. Currently I pass the number I want it to display in the url (ie gallery.html?church=5 or gallery.html?pioneer_club=3). That's no problem to me, I just have to update the main page that links to the gallery every time I add images, it'd just be that much easier if it were automatic.
Thanks for your help, if you need to look at it more closely, the gallery is at www.hambdenalliance.org/gallery. The gallery.html file is in hambdenalliance.org/gallery and the images are in /gallery/images.
~ Ian
I have recently made a JS gallery on my website which loads images based on the prefix of their name and their number (ie church1, church2, etc.). I want to make the gallery automatically look to see how many such images are in the directory. Currently I pass the number I want it to display in the url (ie gallery.html?church=5 or gallery.html?pioneer_club=3). That's no problem to me, I just have to update the main page that links to the gallery every time I add images, it'd just be that much easier if it were automatic.
Thanks for your help, if you need to look at it more closely, the gallery is at www.hambdenalliance.org/gallery. The gallery.html file is in hambdenalliance.org/gallery and the images are in /gallery/images.
~ Ian