Can anyone point me in the right direction to find example scripts for building a recursive drop down directory/file tree using the file system object component that also can build the dhtml components that open/close folder icons. I would also like to be able to change the starting directory where recursion will start to take place.
I find it most difficult to organize the open/closed menu part because I don't know where the top-level/sub-level directories are beginning and ending.
Ideally, I want an example that does not have limitations as to the depth of the subdirectories it finds. When I click on the folder, it will get the files for that directory and display them in the right frame.
I am wanting to display this tree like below (where of = open folder icon and cf=closed folder icon):
(of) toplevel | contents of folder3a
|_ (cf) folder1 | file1.gif
|_ (cf) folder2 | file2.gif
|_ (of) folder3 | file3.gif
|_ (of) folder3a | file4.gif
|_ (cf) folder3b | etc.
|_ (cf) folder3c |
|_ (cf) folder4 |
|_ (cf) folder5 |
|
|
Thanks for the help. regards,
Brian
I find it most difficult to organize the open/closed menu part because I don't know where the top-level/sub-level directories are beginning and ending.
Ideally, I want an example that does not have limitations as to the depth of the subdirectories it finds. When I click on the folder, it will get the files for that directory and display them in the right frame.
I am wanting to display this tree like below (where of = open folder icon and cf=closed folder icon):
(of) toplevel | contents of folder3a
|_ (cf) folder1 | file1.gif
|_ (cf) folder2 | file2.gif
|_ (of) folder3 | file3.gif
|_ (of) folder3a | file4.gif
|_ (cf) folder3b | etc.
|_ (cf) folder3c |
|_ (cf) folder4 |
|_ (cf) folder5 |
|
|
Thanks for the help. regards,
Brian