"Srihari" <sr***********@yahoo.com> wrote in message
news:81******************************@localhost.ta lkaboutprogramming.com...
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?
----- Original Message -----
From: "Srihari" <sr***********@yahoo.com>
Newsgroups: comp.lang.javascript
Sent: Sunday, September 12, 2004 4:41 PM
Subject: 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?
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