Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tim on Jun 03, 2008 06:54
open dhtmlx forum
dhtmlxTree

Hi - I am evaluating dhtmlxTree and cannot seem to find a simple example of how to load the tree from sql.

Can you please point us to one?

Thanks in advance.
Answer posted by Support on Jun 03, 2008 09:29
The tree can't be loaded directly from SQL
Component is client side , so you need some kind of server side script which convert data from DB to one of supported format ( XML, JSON, CVS )

in HTML
    tree.loadXML(some.script)
in some.script
    data=get_data_from_db();
     print data.as_xml();


The samples included in package uses predefined XML files or PHP as server side script - if necessary , samples for some other platforms can be provided