Re: How do I make a HTML tree for a set of nodes?
| From: | David Robley | Date: | Mon, 05 Jun 2006 11:32:27 +0000 |
| Subject: | Re: How do I make a HTML tree for a set of nodes? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237398@lists.php.net to get a copy of this message | ||
Niels wrote:
> Hi,
>
>
> I have a set of nodes. Each node has a parent and so the set can be
> thought of as a tree. I want to show that tree somehow on a webpage,
> served by PHP. I cannot use Dot/Graphwiz for various reasons. What I'm
> looking for is an output of DIVs or tablecells, showing the nodes and
> their connections. It's not a trivial task, IMO, but doable. Possibly
> somebody has already made something similiar, but I can't find anything on
> Google. Can anybody point me to helpful information?
>
> Thanks,
> Niels
For the concept of storage, you might want to look at
http://www.sitepoint.com/article/hierarchical-data-database
For a very simple implementation of the idea for display and editing,
http://www.auseinet.com/test/treeedit.php
I can provide the code for the above if you want it.
Cheers
--
David Robley
Death is a nonmaskable interrupt.
Today is Sweetmorn, the 10th day of Confusion in the YOLD 3172.