generate tree structure using database

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Srihari

    generate tree structure using database

    I'm trying to develop a tree structure using javascript. The node values of
    the tree are generating from a mysql table depending on login. The tree
    structure contains 3 sub levels.

    I developed static HTML tree using http://www.treeview.net. now i need to
    generate this tree dynamically.

    Can any one has code for this?

  • Dominic Myers

    #2
    Re: generate tree structure using database

    "Srihari" <sriharikallam@ yahoo.com> wrote in message
    news:814ce1e43f 5a574bc76ec0bed 894c4a4@localho st.talkaboutpro gramming.com...[color=blue]
    > I'm trying to develop a tree structure using javascript. The node values
    > of
    > the tree are generating from a mysql table depending on login. The tree
    > structure contains 3 sub levels.
    >
    > I developed static HTML tree using http://www.treeview.net. now i need to
    > generate this tree dynamically.
    >
    > Can any one has code for this?
    >[/color]

    ----- Original Message -----
    From: "Srihari" <sriharikallam@ yahoo.com>
    Newsgroups: comp.lang.javas cript
    Sent: Sunday, September 12, 2004 4:41 PM
    Subject: generate tree structure using database

    [color=blue]
    > I'm trying to develop a tree structure using javascript. The node values
    > of
    > the tree are generating from a mysql table depending on login. The tree
    > structure contains 3 sub levels.
    >
    > I developed static HTML tree using http://www.treeview.net. now i need to
    > generate this tree dynamically.
    >
    > Can any one has code for this?
    >[/color]

    Hi there, it depends on the format of your data I should imagine, it's quiet
    easy to calculate, for instance, the x and y co-ordinates of your elements
    as long as the data is related in some way. That's what I do for an
    organisation chart at http://camshag.co.uk/svg/NHSTrust/index.html It's a
    simple little algorithm... but then again it did take me 6 weeks to figure
    it out ;-)
    If that doesn't float you're boat then there are commercial javascript
    solutions which'll organise data from a database... have a good google!
    Cheers,
    Dom


    Comment

    Working...