Categories | Question details Back To List | ||
dhtmlXTree source id I'm using the following when I drag something (a link in my case) into a tree: tree.attachEvent("onDragIn", function(sid,tid) { alert("dragged"+sid+"into the"+tid) }) The above works, except the sid is "undefined". Here's a snippet of the code of the source: tree = new dhtmlXTreeObject(....); // this works, I just left out the args tree.enableDragAndDrop(true); tree.makeDragable(id); // the id of the link, this works - I can drag the link to the tree and it shows up in the tree I want the sid to contain the link - not be "undefined" like it is now. What am I missing or doing wrong?????? Answer posted by Support on Apr 18, 2008 02:11 Existing code not assign unique IDs to custom drag elements, but it can be easily updated dhtmlxtree_drag,js , line 21 obj.parentObject=new Object; obj.parentObject.img=obj; obj.parentObject.id=obj.id; // this line need to be added |