Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
86
rated 0 times [  91] [ 5]  / answers: 1 / hits: 64358  / 14 Years ago, thu, may 27, 2010, 12:00:00

Is it possible to list the files in a directory using only javascript? To clarify, I mean list the files on the server, not the files on the clients computer. For instance:



www.domain.com/files/



contains 4 images (.jpg)



Can I make an extra page (www.domain.com/files/list.html) that lists those 4 files using javascript?


More From » javascript

 Answers
147

No, Javascript doesn't have access to the filesystem. Server side Javascript is a whole different story but I guess you don't mean that.


[#96659] Tuesday, May 25, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
stacied

Total Points: 124
Total Questions: 84
Total Answers: 98

Location: Ivory Coast
Member since Sun, Mar 7, 2021
3 Years ago
;