Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > tree menu from ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 35554 of 36382
Post > Topic >>

tree menu from current folder

by preet <preetkanwaljit> May 10, 2008 at 04:27 AM

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
***
 




 2 Posts in Topic:
tree menu from current folder
preet <preetkanwaljit&  2008-05-10 04:27:47 
Re: tree menu from current folder
SAM <stephanemoriaux.N  2008-05-10 13:34:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 5:16:17 CDT 2008.