Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
35
rated 0 times [  39] [ 4]  / answers: 1 / hits: 19819  / 14 Years ago, mon, june 21, 2010, 12:00:00

How can I do a foreach(File file in Directory) kind of thing in jQuery.



Thank you!


More From » jquery

 Answers
36

Javascript does not have access to the local file system for obvious security reasons. This is not possible.



Unless you are trying to loop through files on your server, in which case you wouldn't want to use jQuery anyway but something like ASP.NET or PHP or whatever framework you are using.


[#96434] Thursday, June 17, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
leighrheac

Total Points: 313
Total Questions: 92
Total Answers: 94

Location: Papua New Guinea
Member since Thu, May 7, 2020
4 Years ago
;