+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: suggestions, treeview?

  1. #1
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    suggestions, treeview?

    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. #2
    Drunk Barn Owl dr_rock will become famous soon enough dr_rock's Avatar
    Join Date
    Jun 2008
    Location
    Melbourne, Australia
    Posts
    180
    Rep Power
    4

    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. #3
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    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. #4
    Super Sarcasm Mistress mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere's Avatar
    Join Date
    Mar 2008
    Location
    Wide Awake In Dreamland
    Posts
    830
    Rep Power
    8

    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:
    INSIGHT: When the going gets tough, the tough get going. The smart left a long time ago.

    Questions to Ponder:
    Are people more violently opposed to fur rather than leather because it's much easier to harass rich women than motorcycle gangs?

    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. #5
    Drunk Barn Owl dr_rock will become famous soon enough dr_rock's Avatar
    Join Date
    Jun 2008
    Location
    Melbourne, Australia
    Posts
    180
    Rep Power
    4

    Here is some info on using HTML lists: HTML Lists
    Eval("2b" || !"2b") - shakespeare

  6. #6
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    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. #7
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    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. #8
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    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)""
    
    Addition:
    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 11:25 AM. Reason: addition

  9. #9
    Barn Frequenter BLaaaaaaaaaarche will become famous soon enough BLaaaaaaaaaarche will become famous soon enough BLaaaaaaaaaarche's Avatar
    Join Date
    Mar 2008
    Posts
    188
    Rep Power
    5

    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. #10
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    Thanks BLaaaaaaaaarche, do you want the whole asp page? or just code starting at <form> tag?

    also, can i email it to you?

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Similar Threads

  1. Suggestions please (website review)
    By sbenj69 in forum Website Reviews
    Replies: 21
    Last Post: January 26th, 2009, 03:57 PM
  2. Menu Buttons Tips/Suggestions
    By Rebelle in forum HTML & CSS Help
    Replies: 3
    Last Post: December 23rd, 2008, 08:26 AM
  3. Suggestions - ChangedOn field
    By Rebelle in forum ASP Development
    Replies: 7
    Last Post: April 8th, 2008, 03:07 PM
  4. User Title Suggestions
    By jmurrayhead in forum Community Support, Suggestions & Feedback
    Replies: 15
    Last Post: March 21st, 2008, 01:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO