very,easy,Tree,View,like,Control,your,html,pa
Quick Search for:  in language:    
very,easy,Tree,View,like,Control,your,html,pa
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
ASP/ VbScript Stats

 Code: 144,429 lines
 Jobs: 168 postings

 
Sponsored by:

 

You are in:

 
Login


 

 


Latest Code Ticker for ASP/ VbScript.
Click here to see a screenshot of this code!Ping in ASP
By Michele_Garneri on 10/28

(Screen Shot)

Embed Real Player Object
By Ziae Mousavi m. on 10/27


Set Country --> Combobox
By Hohl David on 10/27


Client Side Sorting of records
By Ravi Rajan on 10/26


Recordset paging with images
By Ravi Rajan on 10/26


Click here to see a screenshot of this code!Online photo catalogue VBScript 2.1
By Ivan Loire on 10/26

(Screen Shot)

GPS 1.4 WYSIWYG
By Guo Xu on 10/25


Click here to see a screenshot of this code!A Network Monitor tool from ActivXperts Software Inc.
By Freddy Hofstadt on 10/25

(Screen Shot)

Socket samples based on Winsock, TCP/IP and client/server communication
By Ronny Bright on 10/25


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

TreeView

Print
Email
 
winzip icon
Submitted on: 12/10/2000 7:54:52 PM
By: SimonLa  
Level: Intermediate
User Rating: By 24 Users
Compatibility:ASP (Active Server Pages), HTML, VbScript (browser/client side)

Users have accessed this code 24858 times.
 
(About the author)
 
     This is a very easy way to add a Tree View (like the VB Control) in your html page. With 1 function, add TreeViews with or without checkboxs and links. If you like it, vote for it ! Simon

 
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 Winzipto 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 3 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
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
12/14/2000 10:16:47 AM:Manas Tungare
Good code; even if it doesn't work with 
NS, it still degrades gracefully. It 
doesn't expand/collapse, but atleast 
allows the user to see all 
nodes.
And BTW, calculate 12% of the 
annual eCommerce business in billions, 
and then tell me it doesn't account for 
much.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/15/2000 5:47:08 PM:Bryan Zimmerman
Good code!
Looking for a variation 
possibly....
Is it possible for a 
certain page to have one of the trees 
automatically expanded?  Example:  If I 
were to pull up a page that was the 
"Development Sites" page and I would 
want just that tree to be expanded, but 
the others not, is there a dynamic way 
to do that?  Just curious. Gracious for 
any help.
-bryan
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/15/2000 6:10:03 PM:Eugene
Simon,
This is good code, regardless 
of which browser you are using. I would 
hope that I speak for the majority, 
that you are not liable for 
restrictions imposed by Netscape.
I 
like how you test for IE, and if not, 
the tree is displayed in the expanded 
format. Great Job!
Eugene
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/22/2000 10:52:47 PM:Simon La Rochelle
I've edit my code so now you can set 
the default display (open/close) for 
each section of the Tree... like Brian 
ask for.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/30/2001 8:48:19 PM:Wesley Brand
Great Code!  This really helped me out 
with a project.  I'm using the tree's 
open position for my Netscape users.  
Thank you so much for putting this 
out..very user friendly..
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/21/2001 4:57:20 PM:Joe Dawson
Execellent example. Any ideas about 
using this code with recursion?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/17/2001 3:15:45 PM:morganrt
Great Code!
I'm embarassed to say that 
while I can get the example 
'TreeView.asp' to display with no 
problems, when I replaced the links 
with links of my own to test it, the 
tree displays differently.
Now the 
parent 'Exemple1' is displayed, but the 
parents 'Example2' and 'Development' 
remain closed until you click on 
'Exemple1'. 
Why are the two other 
seperate parents now under the 
first?
I don't blame Simon's code, 
just wondering what I did..?
Thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/8/2001 2:33:28 AM:Matthias
Great Stuff,
I don't have much 
experience in Web programming so far, 
but this is the first example on the 
web (and I found quite a few), which 
allows you to easily change a bit... 
Thanks Simon
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/5/2001 5:34:46 PM:Thomas Sturm
Clear and nice! - a lovely Treeview. 
Won´t work in Netscape or Opera since 
they don´t understand the 'block' 
style. With Opera I expect they´ll fix 
that shortly. You have to be careful 
how you place those 'Writehead' and 
-foots tho, otherwise the <div>s don´t 
get closed and the Treeview 'swallows' 
up all following menus. I have linked 
it to a database and will post a 
recursive, non depth limited version 
soon...when I have translated my 
comments from german into english, that 
is :-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/19/2001 10:43:29 AM:David
Excellent! Exactly what I was looking 
for. I have updated the code so that it 
is datbabase driven and have created a 
user interface in VB to build the tree 
a whole lot easier. Will be posting it 
soon.
There is one little glitch 
though. I have the menu building in a 
left frame. When you expand the nodes 
and go out past the size of the frame, 
the text wraps instead of automatically 
showing the scroll bar. Any ideas on 
how to fix this? Have tried setting 
'scrolling' to yes on the frame but 
this doesn't do the trick.
-David
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/19/2001 11:52:57 AM:David
I fixed the wrapping issue. Found the 
<NOBR> HTML tag and used that. Had to 
place the opening tag before the area 
where the level is checked and the 
ending tag after the title of the node 
is written.
-David
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/22/2002 8:05:17 PM:Ravi
Great code.
I am trying to use 
Scripting.FileSystemObject to build 
drive,folders,files. 
Does anybody 
having ideas.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/23/2002 6:33:27 AM:Phil
This is the easiest code to understand, 
the easiest to implement and the most 
versitlile I have seen in years. Well 
Done! And thank you for sharing this 
with us all
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/25/2002 12:41:32 PM:sagar
I am kind of crunch in building a tree 
control from database tables.
can 
please send me the sample of this 
control wich will get tree structure 
from 
database?
thanks
Sagar
sagar.yerramse
tty@signaltreesolutions.com
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/22/2002 10:25:06 AM:Alex
Very nice code. Just the example I was 
looking for.
Thanks a lot
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/22/2002 3:03:21 PM:NJK
excellent.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/23/2002 1:58:44 PM:Dan
Excellent idea.Is there a problem with 
the depth of the levels? I seem to have 
scripting errors using levels above 5. 
It might just be my code though. is 
there a problem with using very very 
large trees (mine has approx 2500 
nodes)? 
Any help would be gratefully 
appreciated.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/30/2002 8:02:33 AM:The Saint
Just Great Piece of Code!!!
I only 
have some kind of problem when i add 
Third Level. The expand-collapse is not 
working after the third level of the 
Tree. What can i do about 
that?
Thanks for the nice code
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/30/2002 8:22:00 AM:The Saint
I was doing something wrong! Sorry
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/27/2002 10:58:25 AM:Renso
How can I make it remember the last 
view if I do a back or return to the 
page?  Thanks.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/11/2002 4:19:31 PM:
Does it work under MAC?? 
thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/14/2002 3:37:29 AM:
I'm a html- beginner. Can you please 
explain me how I can integrate your 
code in my page. I just found your asp- 
code but I didn't found an exe for a 
command like treeview Pagefile. Can you 
help me?
thanks in advance
Marc
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | ASP/ VbScript Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.