dhtmlXTree



I want to drag an object between frames and make an event trigger after the drag. I can drag between frames just fine, but I can't seem to get the event to fire. Here's a snippet of my code.


tree = new dhtmlXtreeObject(.....); // this works; I just did not put in the args
tree.setImagePath("somepath");
tree.enableDragAndDrop(true);
tree.attachEvent("onDrag",function(sid,tid){
alert("draged "+sid+", into the "+tid)
return true;
})
tree.loadXML("somexmlfile");

I don't get the alert. Do you know why it's not working?????

You code is correct, and event must be generated
Please check attached sample, it uses the same code and works correctly.

1208511981.zip (45.1 KB)