I have loaded a jsTree with an AJAX call that returns JSON data. How can I refresh the tree so that it reloads its contents?
var tree = jQuery.jstree._reference("#files"); tree.refresh();
or
var tree = jQuery.jstree._reference("#files"); var currentNode = tree._get_node(null, false); var parentNode = tree._get_parent(currentNode); tree.refresh(parentNode);