Important alert: (current site time 7/15/2013 11:58:54 PM EDT)
 

winzip icon

Tree Menu Based on Directories

Email
Submitted on: 9/22/2000 12:00:15 PM
By: PIAZZA Stephane 
Level: Intermediate
User Rating: By 6 Users
Compatibility: ASP (Active Server Pages), HTML, VbScript (browser/client side)
Views: 59330
author picture
(About the author)
 
     Only organize your directories, inlude your html pages anywhere. The asp source will automaticly create a Tree Menu (DHTML one). Nothing to do. You only have to go to the asp source and modify the begin of the path on which will be based your tree view. Look at readme.txt
 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
' for :Tree Menu Based on Directories
'**************************************
No copyright ...
Only a mail to tell me if you're using it.
Rate it ... or Unrate it ...
But vote, I need to know what u think about it.
Special Thanks to Sweet Deluxe
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 4 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
9/23/2000 12:14:39 PMeugene

Excellent ASP Code, but I am getting a javascript error:
JavaScript Error:
http://internal.computerlyte.net/tree/script.js, line 4:
document.all has no properties.

Any ideas? Regards...
(If this comment was disrespectful, please report it.)

 
9/25/2000 12:17:30 PMStephane PIAZZA

About the above problem,
don't forget that the names of your files and directories must have an "_" and not a blank.
"Contact_Us" will work, not "Contact Us".
Thanks to try it.
I'll modify the programm to use the blank also.
(If this comment was disrespectful, please report it.)

 
12/12/2000 11:39:52 PMSweet Deluxe

Thanks, for the recognition. You've done good with the code! Congrats on the award!
(If this comment was disrespectful, please report it.)

 
4/10/2001 2:39:15 PMTomas

Is there a place where I can view this code being used before I spend time implementing it? Thanks in advance...

(If this comment was disrespectful, please report it.)

 
4/10/2001 2:40:07 PMtomasc

Is there a place where I can view this code in action? It sounds like it may be what I was looking for but just want to be sure.

Thanks in advance.
(If this comment was disrespectful, please report it.)

 
9/16/2001 5:53:31 AMSheeja Anil

When I am using this code, getting the error :

Server object error 'ASP 0177 : 800a004c'

Server.CreateObject Failed

/shees/TEST/tree/menu.asp, line 102

00000000

Please give me a solution.

With Thanks & Regards,
Sheeja.
(If this comment was disrespectful, please report it.)

 
10/1/2001 10:56:32 AMDoug Rasmussen

I am using this on our intranet for helpdesk documentation. WORKS GREAT!!

I also have plans to use this in part of a large project comming up.

Thanks
(If this comment was disrespectful, please report it.)

 
1/31/2002 11:53:37 PMliza

Sorry, i tried but couldn't download the code. Can it be sent to me?
(If this comment was disrespectful, please report it.)

 
6/18/2002 2:14:30 PMVeneet

hey,
I am pretty new to implementing asp into an html page so this I guess is a pretty basic question. See, my project is to implement a tree sorts or menu sorts program that can look through a server that lists a bunch of files. I have no idea how to implement this program to that idea.

I am running a Unix SunOs server and basically just wanted to look through my directories and on files that can be opened, open them in my web page. Sorry for such a long and probably easy implementation question but any help would be GREATLY appreciated.
Thanks
(If this comment was disrespectful, please report it.)

 
8/27/2002 4:05:26 AMPokkel

This code according to description is just what the doctor ordered for me. Just one small nick, I am very new and an absolute novice at asp and vbscript and therefore have difficulty solving this problem:
Microsoft VBScript runtime (0x800A004C)
Path not found
/menu.asp, line 102

Please inform what I can do to get this working.

THANX
(If this comment was disrespectful, please report it.)

 
11/4/2002 6:36:09 AM

I want to the menus from the database. I want the script for obtaining tree like the shown on http://www.watson-net.com.
(If this comment was disrespectful, please report it.)

 
11/4/2002 6:38:18 AM

I want to extract the menus from the data base.
I want the script for obtaining tree
like the shown on
http://www.watson-net.com


(If this comment was disrespectful, please report it.)

 
12/16/2002 12:26:48 PM

How I can make this code work on Netscape?
(If this comment was disrespectful, please report it.)

 
12/23/2002 3:26:52 AM

Microsoft VBScript runtime error '800a004c'

Path not found

/t_case/menu.asp, line 102

(If this comment was disrespectful, please report it.)

 
3/25/2003 11:44:30 AM

Do you have a version of this that works in both netscape and IE?
(If this comment was disrespectful, please report it.)

 
8/15/2003 2:24:46 AM

the javascript on this page also fails when two or more directories have the same name.
(If this comment was disrespectful, please report it.)

 
12/9/2003 11:07:39 AM

I am getting an error, can you help?
Server object error 'ASP 0177 : 800a004c'

Server.CreateObject Failed

/chris/menu.asp, line 102

The operation completed successfully.

(If this comment was disrespectful, please report it.)

 
9/23/2004 11:35:26 PM

Is it possible to sort the output by creation date of folders? instead of sort it by name?
(If this comment was disrespectful, please report it.)

 
4/9/2006 7:25:08 PMThis would be good...

There's no instructions on how to use this. I have gone over the code 50 times and I can't figure out what to modify for the path. I have added path = "" then the path , but then it just runs out of memory. So forget i'll figure out how to make one myself =/
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.