Is it possible to iterate through a set of files in Javascript? I am writing a jQuery plugin that accepts either an array of images, or, I hoped, a directory containing a list of images. For instance. or:
['image1.jpg','image2.jpg','image3.jpg']
or 'http://somedomain.com/images/'
Then I would like to be able to iterate over the above domain and take the file name from each of the files in the folder.
I read about FileSystemObject , but it will only be available in IE, is there an equivalent that can be used in all browsers?
source
share