Hi there,
I have a question regarding dhtmlxtree
When I do
tree.insertNewItem(selectedId,100,newCategoryTitle,0,‘folderClosed.gif’,‘folderClosed.gif’,‘folderClosed.gif’,“SELECT”);
how do I get the tid in xml response?
I tried to catch it with variable, and when I alert it, it didnt’ give me the xml for some reason. or maybe i shouldn’t have done that.
I need to get the ID just like mysql_insert_id() in php, to set some attributes on it.
Any help would be appreciated
Thanks
You can use next code
dataproc.defineAction(“insert”,function(node){
alert("new node id = "+node.getAttribute(“tid”));
return true;
});
fab - you’re a star, thanks