¡@

Home 

2014/10/16 ¤W¤È 12:05:46

jquery Programming Glossary: new_data

how to append json variable as child nodes using “jstree” jquery plugin - no ajax

http://stackoverflow.com/questions/7914365/how-to-append-json-variable-as-child-nodes-using-jstree-jquery-plugin-no-aja

url function node var nodeId node.attr 'id' id A return 'yuorPathTo GetChildrenScript ' nodeId success function new_data where new_data node children e.g. 'data' 'A1 node' 'attr' 'id' 'A1' 'data' 'A2 node' 'attr' 'id' 'A2' return new_data.. node var nodeId node.attr 'id' id A return 'yuorPathTo GetChildrenScript ' nodeId success function new_data where new_data node children e.g. 'data' 'A1 node' 'attr' 'id' 'A1' 'data' 'A2 node' 'attr' 'id' 'A2' return new_data OLD PART something.. where new_data node children e.g. 'data' 'A1 node' 'attr' 'id' 'A1' 'data' 'A2 node' 'attr' 'id' 'A2' return new_data OLD PART something like that will populate opened node with children if not already done ... json_data root elements..