This is a discussion on suggestions, treeview? within the ASP Development forums, part of the Programming & Scripting category; Hi All, I currently have a page that looks like below....the ItemName is a link and opens to a new ...
| |||||||
|
#1
| ||||
| ||||
| Hi All, I currently have a page that looks like below....the ItemName is a link and opens to a new window that contains all the piece parts for that item. My question is I googled treeview because I wanted to know if there is another way to do this...something like second example below where i can expand the itemname? Would this be a way to use treeview or some other way? Code: Ex1: ProductLineName-- --CategoryName ----ItemName ProductLineName-- --CategoryName ----ItemName etc... Code: Ex2:
ProductLineName--
--CategoryName
+ItemName
----Part1
----Part2
----Part3
ProductLineName--
--CategoryName
+ItemName
----Part1
----Part2
----Part3
etc...
|
|
#2
| ||||
| ||||
| The best way to do that is with javascript, heres an applet you could use: TreeView: JavaScript DHTML Tree Menu Here is a simple tree menu source code: Dynamic Drive DHTML Scripts- Simple Tree Menu
__________________ Eval("2b" || !"2b") - shakespeare |
|
#3
| ||||
| ||||
| hi...need some help here.. ![]() shouldn't this work? or should the <td> tags be on the outside? its showing a bullet with nothing then bullet with the itemdesc name...but no expand/contract. Code: <ul id="treemenu1" class="treeview">
<li><td align=right><%=rs("ItemID")%></td>
<ul>
<li><%=rs("ItemDesc")%></li>
</ul>
</li>
</ul>
|
|
#4
| ||||
| ||||
| the td tag is for a table cell ... if you want the tree inside the cell, then yes, the td tag should be before and after the UL tags
__________________ Quote of the Month: Mistakes: It could be that the purpose of your life is only to serve as a warning to others. Questions to Ponder: Why do banks charge you a "non-sufficient funds fee" on money they already know you don't have? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright © 2008 sbenj69 Sarchasm: The gulf between the author of sarcastic wit and the person who doesn't get it. |
|
#5
| ||||
| ||||
| Here is some info on using HTML lists: HTML Lists |
|
#6
| ||||
| ||||
| for some reason i couldn't get it to work for me....but i think expand/collapse is what i need, i found this example.... JAVASCRIPT EXAMPLES: Collapse and Expand Page Sections i'm gonna give it a shot unless someone has a better example? how does this really differ from the tree? |
|
#7
| ||||
| ||||
| well, it may be closer to this example because my stuff is in a table. ![]() Expand and Collapse table rows / tree structures with Javascript Lavanya’s Blog |
|
#8
| ||||
| ||||
| grr...ok, having trouble, i'm trying to use the example giving at the end of this post: How to expand and collapse multiple rows in table using Java script (HTML and JavaScript forum at JavaRanch) but i'm not getting any results....want me to post new javascript thread? should this have the word "this" or "obj"? Code: onClicked=""showHide(this)"" I'm using this with a recordset on my asp page that has a couple of loops, could this be the issue? I'm not getting any errors but I'm not getting a hand to click. Last edited by Rebelle; July 9th, 2009 at 10:25 AM. Reason: addition |
|
#9
| ||||
| ||||
| Post all of your code. I can help you with your tree structure. Post in a zip file if multiple files.
__________________ "You'll never be as perfect as BLaaaaaaaaarche." |
|
#10
| ||||
| ||||
| Thanks BLaaaaaaaaarche, do you want the whole asp page? or just code starting at <form> tag? also, can i email it to you? |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Suggestions please (website review) | sbenj69 | Website Reviews | 21 | January 26th, 2009 03:57 PM |
| Menu Buttons Tips/Suggestions | Rebelle | HTML & CSS Help | 3 | December 23rd, 2008 08:26 AM |
| Suggestions - ChangedOn field | Rebelle | ASP Development | 7 | April 8th, 2008 02:07 PM |
| [Feedback] User Title Suggestions | jmurrayhead | Suggestions & Feedback | 15 | March 21st, 2008 12:54 PM |