[thelist] Counting files in a folder using JavaScript

Keith cache at dowebs.com
Mon Dec 10 17:38:12 CST 2001


> Is there a quick and easy way to count files in a folder and assign
> the number to a var in JavaScript?

Javascript cannot read the local hard drive or the remote server 
hard drive. If you want to put that number in a Javascript var you'll 
have to examine the folder and arrive at the number with a server 
app, then write that number to the page in the var, or to a cookie or 
to the url's query string and have Javascript read the cookie or 
query string.

keith




More information about the thelist mailing list