Categories | Question details Back To List | ||
Tree Load by Ajax You can show me or tell me for more detail about method for load data from database with AJAX in Tree view ? Answer posted by Support on Jun 09, 2008 03:59 The tree can't be loaded directly from database , but it can use any server side script as datasource ( tree calls server side script, script connects to DB and output data in one of supported formats - XML , JSON ) To load data as XML tree.loadXML(url) to load data as JSON tree.loadJSON(url) where url - url of server side script. The package contains sample for normal and dynamical loading of data with PHP. Please inform if you need a sample for different language. http://www.dhtmlx.com/docs/products/dhtmlxTree/doc/guide.html#json http://www.dhtmlx.com/docs/products/dhtmlxTree/doc/guide.html#xmlload http://www.dhtmlx.com/docs/products/dhtmlxTree/doc/dyn_loading.html#dyntree Answer posted by Support on Jun 09, 2008 04:00 The tree can work in dynamical mode , when data for each branch will load as separate AJAX request - please check link above for details. http://www.dhtmlx.com/docs/products/dhtmlxTree/samples/loading_processing_data/tree_dyn_loading.html?un=1213010348000 |