View Full Version : Loading data from JSOn

12 May 2009, 10:03 AM
Hello All,

I have a working tree that populate the data from the JSON file. right now a i create the JSON file by using a different page and just writing the contents to the json file. Yes, it could easily be included in the same file as the tree, but what i'm curious about is this the proper way to load data to the JSON? Is there a better way to do this? Or is just getting the information to the JSON file enough? Also how do you take a regular tree and turn it into a lazy loading tree?

Thanks for all your time.

12 May 2009, 11:12 PM
A lazy loading tree requires (generally) some kind of backend. When you expand the node, a request is made to the server, which passes the id of the parent node. From here, you usually do a query to find all the child nodes then return them.