Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by krunal patel on Jul 30, 2009 09:57
open dhtmlx forum
Two tree in one div tag...

hi,
 i want to develope  two  tree in one div tag...
can it possible or not..and if possible the n please give me brief example about this...
and how i create database table for the two different tree....and how to set data query into "get.php" and "update.php" file ..
please give me answer as soon as posssible............


Answer posted by Alex (suport) on Jul 31, 2009 00:34

Hello, 

>>  i want to develope two tree in one div tag...

You can try do that. For example:

<div id="treeboxbox_tree" style="width:250px; height:500px;background-color:#f5f5f5;.."></div>
<script>
tree1 = new dhtmlXTreeObject("treeboxbox_tree","100%","50%",0);
...
tree2 = new dhtmlXTreeObject("treeboxbox_tree","100%","50%",0);
...
</script> 

Regarding the database structure - there are no any rules. And moreover tree is a client-side component.

There are php connectors for components. Possibly they'll help to implement the server-side part easily http://dhtmlx.com/docs/products/dhtmlxConnector/index.shtml