views:

183

answers:

1

You can grab data from here. Instead of saving JSON as a separate variable within the script file, is it possible to create a file pointer, and populate a Tree with one config option? Saving JSON in a variable does the job, but it's quite cumbersome!

+1  A: 

You can't use files outside of things like AIR it's a security risk and the sandbox won't allow it. You can of course keep the JSON in an external file and request it through HTTP using a TreeLoader with AsyncTreeNode and preloading children OR simply evaluate the AJAX response yourself.

Lloyd
Could you, please put some code up? If I pass `dataUrl: "somejsonfile.json"` within a config option, it's not going to populate the tree!
aL3xa