Re: How do I make a HTML tree for a set of nodes?
| From: | Mike Bellerby | Date: | Sun, 04 Jun 2006 16:37:41 +0000 |
| Subject: | Re: How do I make a HTML tree for a set of nodes? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237347@lists.php.net to get a copy of this message | ||
You could do it by dynamically generating an image.
Mike
Niels wrote:
On Sunday 04 June 2006 15:30, tedd wrote: [snip]You can dynamically generate a table and place text (and/or color) the cells that are nodes -- that would be my approach. You would need to know the width and depth of the tree and then just fill in the cells that are nodes. hth's teddYes, well... It's a tad more complicated I think. Yes, I can make a table, finding the dimensions shouldn't be a big problem. Placing the nodes in the right cells isn't as easy, and making the connections is downright difficult. A problem with using a table is that cells can't be individually sized. However DIVs or TDs is a minor problem. The major problem is to walk through the tree properly (recursively probably), and remember the connections. And then rendering them... Thank you for your answer, Niels