Originally Posted by jmrker
I know of no way for a client side script to read either a server or local computer directory with JS.
via server: http://cdn.atlas.illinois.edu/will.i.../node_modules/
also webDAV, common and available with apache and IIS, if enabled, can list and even grep the folders and files for you.
from a local computer, you can drag the folder into the browser in at least chrome, or rip up a zip file in any half-way recent browser.
to the OP:
That's all certainly doable, but you're getting into territory that a simple CMS or PHP framework, or dreamweaver templates, or maybe even old-fashioned SSI would be better suited to deliver. if you had a server build the list instead of the JS, you don't need to transfer over every html file to get the description, you can pluck it right into the list before shipping.
you can also do a half-way hybrid routine that uses the slow ajax routine outlined to build a new housesforsale.html page for you, that you then ftp up to the server. this essentially uses JS as a poor-man's server/dreamweaver renderer, but only you have to wait for all the files to be scanned, not your clients. the end result of a routine like that or dreamweaver will always vastly out-perform even the aforementioned server-side routine that scans the folders each time. cheap, simple, and fast, but only semi-auto...