JsTree loading data
Posted on 2014-04-02
I've been reading up on using jsTree and trying to figure out how to load data into the tree. My data I want to load is massive so I will need to use ajax, so when a node is clicked on I want it to go off and pull in the child nodes.
Ive seen some examples of binding to the click event then going off to pull the child nodes back however Im unable to find any examples how to bind on click of the node, change the icon to a 'waiting gif' and then pull down an ajax json request and draw child nodes showing which ones can expand and bind expandable nodes to draw more.
Anyone got any examples or any documentation on binding to a node and drawing child nodes from the json returned request?
Thank you for any assistance anyone can provide