PDA

View Full Version : How to add StatusProxy to some dd element



erfaan
13 Jul 2007, 3:24 AM
Hi,
I am using DragDrop object on simple divs. Although all the events of DragDrop occur perfectly but the element does not seem to move with mouse cursor. I want to add the StatusProxy and an alpha copy of the div with mouse cursor while moving.

Can anyone help me please.

erfaan
15 Jul 2007, 9:59 PM
I just found the following code somewhere in these forums.



new Ext.dd.DragSource("dragsource");

var droptarget=new Ext.dd.DropTarget("droptarget");
droptarget.notifyDrop=function(dd, e, data){
console.log("dropped " + dd.id + " on dragtarget", data);
return true;
}


I loved this functionality and it fulfills my requirements. But still these is a problem. I want the droptarget to be dragable as well. or in other words I want the dragsource to be dropable as well

Can someone please help me now.