dynamic web tree menu derived from directory structure

boxofjunk

New Member
Hello,

I was wondering if anyone knew how to create an expandable\collapesable tree menu which is dynamically populated based on folder and file structure.

Example:

If I had a directory like this:

Menu
1​
1A​
2​
2A​
3​
3A​
index.html

The menu embedded in index.html would look within the "Menu" directory and populate a menu with the 1, 2, 3 which can be expanded to 1, 1A, 2, 2A, 3, 3A.

I would like to do this via an html file, but if this can only be done via server side technologies then I would be ok with it.

Any help would be appreciated.

Thank you.
 

Brett

New Member
you'll need to use an SSL like php and have it read the file structure into variables which will then be used to populate the JS menus (or however you're doing them) before the page itself loads (hypertext pre-processing)
 
Top