Connecting Tech Pros Worldwide Help | Site Map

tree menu from current folder

preet
Guest
 
Posts: n/a
#1: Jun 27 '08
i tried to find tutorials to build a working tree menu from contents of
current folder but was unable to find any, neither did i find any
working scrit to build on

can anyone suggest something

i am a newbie to javascript but i did manage to come up with something
using filesystemobject

Set fso = Server.CreateObject("Scripting.FileSystemObject")

path = server.mappath("/")
Set root = fso.GetFolder(Path)
Set files = root.files
Set folders = root.SubFolders

response.write "<ul>"
for each folder in folders
response.write "<li>"+folder.name & "</li>"
next
for each file in files
response.write "<li>"+file.name & "</li>"
next
response.write "</ul>"





--------------------------
http://www.eecpindia.com
http://www.anchorfx.com
http://forex.eecpindia.com


*** Sent via Developersdex http://www.developersdex.com ***
SAM
Guest
 
Posts: n/a
#2: Jun 27 '08

re: tree menu from current folder


preet a écrit :
Quote:
i tried to find tutorials to build a working tree menu from contents of
current folder but was unable to find any, neither did i find any
working scrit to build on
You can't make a 'dir' in client-side JavaScript ...
You'll have to call a php to do the job.
Closed Thread