Link to home
Start Free TrialLog in
Avatar of neelyjer
neelyjerFlag for United States of America

asked on

Javascript to list files

Hello Experts.

I am still quite new to javascript, but I'd like to create a list of files within the images folder of my website using javascript.  I am hoping to perform this action on the client's end.  Later I will load this to an array, but for now I'd just like to retrieve a list of file names.  is this possible?

Thanks in advance!

Jeremy
Avatar of mostart
mostart

Javascript is executed on the clients host so you cant get the file list from your server. You need to use a server side sripting language such as PHP for this purpose.
ASKER CERTIFIED SOLUTION
Avatar of quincydude
quincydude
Flag of Hong Kong image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of neelyjer

ASKER

Thanks Experts, your responses are appreciated.  I am still new to this kind of coding.  Can you provide a simplified example to get me started?  I'm not looking for you to write the whole thing for me as I would like to learn.  I learn best by doing, I just don't know where to start.

Thanks Experts!
read the tutorial in my last response for learning ajax
for the server script part(listing the files bit), i recommend you to use php for this.
Try to check these search results to find some examples
http://www.google.com/search?hl=en&q=php+list+files+in+directory&btnG=Search
Sorry for the delay in my response Experts.  I've been quite busy lately, but I'll take a look at the last suggestion and get back to you all asap.

Jeremy