Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by abhishek on Aug 28, 2009 04:19
open dhtmlx forum
DHTMLX Tree: facing problem in loading tree from a JSON

what is the extension of the file name, for load tree externally (loadJASON())?

i given the extension as .txt and .xml in both the cases iam getting the following error

Error Type: Data Structure
Description: XML refers to not existing parent

Here is the content of the jason file...

"{\"id\":\"0\", \"item\":[{\"id\":\"1\", \"open\":\"1\", \"text\":\"one\", \"item\":[{\"id\":\"2\", \"open\":\"1\", \"text\":\"ssss\", \"item\":[{\"id\":\"3\", \"text\":\"www\"}\n]\n}\n]\n}\n]}"

Answer posted by Alex (support) on Aug 28, 2009 05:45

>> what is the extension of the file name, for load tree externally (loadJASON())?

.json

Please, see the sample dhtmlxTree/samples/json_support/pro_load_json.html ( http://dhtmlx.com/docs/products/dhtmlxTree/samples/json_support/pro_load_json.html )