Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by john on Apr 17, 2008 09:05
open dhtmlx forum
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?????
Answer posted by Support on Apr 18, 2008 02:35
You code is correct, and event must be generated
Please check attached sample, it uses the same code and works correctly.
Attachments (1)