{"action":"closed","issue":{"url":"https://api.github.com/repos/vakata/jstree/issues/983","labels_url":"https://api.github.com/repos/vakata/jstree/issues/983/labels{/name}","comments_url":"https://api.github.com/repos/vakata/jstree/issues/983/comments","events_url":"https://api.github.com/repos/vakata/jstree/issues/983/events","html_url":"https://github.com/vakata/jstree/issues/983","id":56350175,"number":983,"title":"JStree problems create_node","user":{"login":"wrustel","id":8282594,"avatar_url":"https://avatars.githubusercontent.com/u/8282594?v=3","gravatar_id":"","url":"https://api.github.com/users/wrustel","html_url":"https://github.com/wrustel","followers_url":"https://api.github.com/users/wrustel/followers","following_url":"https://api.github.com/users/wrustel/following{/other_user}","gists_url":"https://api.github.com/users/wrustel/gists{/gist_id}","starred_url":"https://api.github.com/users/wrustel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrustel/subscriptions","organizations_url":"https://api.github.com/users/wrustel/orgs","repos_url":"https://api.github.com/users/wrustel/repos","events_url":"https://api.github.com/users/wrustel/events{/privacy}","received_events_url":"https://api.github.com/users/wrustel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-03T08:57:47Z","updated_at":"2015-02-03T10:45:05Z","closed_at":"2015-02-03T10:45:05Z","body":"Hi, Im doing an update dynamically with ajax, I get right the data from the server and I call the method create_node to make the childrens from the parent but this function never return true, never make a node this is what I do:\r\n\r\n\r\n $.ajax({\r\n\t\t\tdataType: \"json\",\r\n\t\t            url : 'http://localhost:8080/test-web/space/newnodes/'+data.node.id,\r\n\t\t            type: \"GET\",\r\n\t\t            success : function(ops) {\t\t            \t \r\n\t\t                  data = []\r\n\t\t                  for( opnum in ops ){\r\n\t\t                    var op = ops[opnum]\r\n\t\t                    node = {\r\n\t\t                        \"data\" : op.info,\r\n\t\t                        \"metadata\" :  op ,\r\n\t\t                        \"state\" : \"closed\"\t\t                        \r\n\t\t                    }\t     \r\n\t\t                    var parent = $('#selector').jstree('get_selected');\r\n\t\t                    var newNode = { id: op.id,parent : op.parent, text: op.text, state: \"open\", data: op.info };\r\n\t\t                    $(\"#treeDiv\").jstree(true).create_node(\"300\", newNode);\r\n\t\t                    var CurrentNode = $(\"#selector\").jstree(\"get_selected\");\r\n\t\t                    var id = $(\"#treeDiv\").jstree('create_node', op.parent, newNode, 'last',null,null);\r\n\t\t                    var id2=  $('#treeDiv').jstree().create_node(op.parent , JSON.stringify(op),'last' );\r\n\t\t                   \r\n\t\t                  }\r\n\t\t                  $('#treeDiv').jstree(true).open_all();\r\n\t\t                  return data;     \r\n\t\t            }\r\n\t\t        })\r\n\r\ncan you help me?. I did call_back true in the constructor of my jstree, I tested everything that I read in internet and I cant draw the childrens, I debugged in chrome and I get correctly the information from the server but this function does not work anyway. Also I tested a function call with json format or object."}}