tree - How to load jstree child nodes using ajax? -
i need jstree. using in 1 of project. need help regarding loading of kid nodes using ajax.
$('#treeloaddiv').jstree({ 'core' : { 'data' : { "url" : "/jstreedemo/jstreedemoservlet", "type":"post", "datatype" : "json", "data" : function (node) { homecoming { "id" : node.id }; } } } });
this code jstree v3 in servlet in case need create json object , set childrens property true each kid loaded using ajax. json format follows
jsonobject jsonobj = new jsonobject(); jsonobj.put("text","root node"); jsonobj.put("children",true);
hope helps stuck @ point many days.
tree nodes jstree
No comments:
Post a Comment