dhtmlx Tree [Professionial version] catch ID when inserting

Hi there,

I have a question regarding dhtmlxtree

When I do


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


You can use next code

    alert("new node id = "+node.getAttribute(“tid”));
    return true;

fab - you’re a star, thanks :smiley: