Re: PHP and dynamic DHTML TREE (not menu) - suggestions
| From: | Jochem Maas | Date: | Tue, 07 Nov 2006 19:12:43 +0000 |
| Subject: | Re: PHP and dynamic DHTML TREE (not menu) - suggestions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244339@lists.php.net to get a copy of this message | ||
Edward Kay wrote:
> How about http://developer.yahoo.com/yui/treeview/ ?
I made an ajaxy tree using this and other bits of YUI,
using data from a mysql db that is then output as JSON data.
getting it together was all rather painless, I can very much recommend
using YUI's treeview. :-)
I use the tree to display a explorer like view of all the 'pages'
defined in a CMS' database and generate icons alongside each node
for deleting, moving, editing, etc when the tree is rendered using the data
retrieved via 'ajax' - each list of children is retrieved as/when a node is
expanded.
it is possible to define custom Node 'subclasses' (sub-prototypes?)
[in javascript] that allow you completely customize the functionality/display/etc
of each (type of) node.
the Dojo toolkit will also do what you want but the learning curve is steeper.
I've used both and while I like dojo for the insane ammount of functionality
I prefer to use YUI for smaller solutions.
(i.e. not full blown 'ajax/dhtml applications')
rgds,
>
> I've been using Yahoo's UI components for a few weeks now and am seriously
> impressed by them.
>
> Edward
>
>> Angelo Zanetti wrote:
>>
>>> Hi All,
>>>
>>> We are looking for a solution for visually displaying parent and child
>>> nodes in a tree like component. It must work with PHP and mySQL as we
>>> are going to be populating the tree with dynamic data.
>>>
>>> We have found this:
>>> http://scbr.com/docs/products/dhtmlxTree/index.shtml
>>> but the demo of
>>> the PHP + mySQL things doesnt work.
>>>
>>> If anyone has any comments, experiences and advices please shoot away!
>>>
>>> Thanks in advance.
>>>
>>> Angelo
>>
>> --
>> ------------------------------------------------------------------------
>> Angelo Zanetti
>> Systems developer
>> ------------------------------------------------------------------------
>>
>> *Telephone:* +27 (021) 469 1052
>> *Mobile:* +27 (0) 72 441 3355
>> *Fax:* +27 (0) 86 681 5885
>> *
>> Web:* http://www.zlogic.co.za
>> *E-Mail:* angelo@zlogic.co.za
>> <mailto:angelo@zlogic.co.za>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>