Results 1 to 7 of 7

Thread: HOW TO -tree view from scratch !!!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    156
    is it possible building a tree view from scratch,
    without an ActiveX.
    The MORE I get to know,
    I realize that I know NOTHING !

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    266
    Hi lirlir,
    Yes it is very much possible to have a tree view by just coding in HTML and ASP without using the OCX, but the code is pretty cumbersome.
    msdnexpert

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    156

    Question

    hi msdnexpert,

    well u c i m trying 2 build a treeview that can be visible
    in both Netscape & IE.
    do u have any idea how to do so. (code,sample,example,link...)

    it ll b very helpfull if u would.

    thanks lirlir
    The MORE I get to know,
    I realize that I know NOTHING !

  4. #4
    Member
    Join Date
    Jun 2000
    Posts
    45
    Here's some code that works for me without ActiveX:
    <SCRIPT language="JavaScript">
    <!--
    //Creates folding tree effect
    var head="display:''"
    function doit(header)
    {
    var head=header.style
    if (head.display=="none")
    head.display=""
    else
    head.display="none"
    }
    //-->
    </SCRIPT>
    Then add your headers, I use:
    <H4 style="cursor:hand" onClick="doit(document.all[this.sourceIndex+1])">Header</H4>
    Then put this:
    <SPAN style="display:none" style=&{head};>
    'Enter stuff you want hidden till someone clicks the header
    </SPAN>

    Hope this is what you were looking for.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    156
    hi capone,

    Thanks, but there r few problems with this code :
    1. its allowing only one node
    2. its doesnt work on NS.

    i ll try to set it up , if u ll have success on your side
    please share it with me.

    lirlir
    The MORE I get to know,
    I realize that I know NOTHING !

  6. #6
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696

    Be warned

    I have found this site that uses a propper treeview just using Javascript but the code is pretty big

    http://www.jsh.de/treeview/index.htm#href=treeview.htm

    Ian
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    156

    Thumbs up

    Ian

    U realy R the GURU of them all.

    thanks a lot (again)

    lirlir.
    The MORE I get to know,
    I realize that I know NOTHING !

Posting Permissions

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



Click Here to Expand Forum to Full Width