PDA

View Full Version : Help : Drag&Drop



brasmouk
28 Dec 2010, 1:27 AM
Hello,
I try to run the drag & drop but it does not work
here is my code




var elt= Ext.get('img1');
elt.dd = new Ext.dd.DDProxy('img1');
elt.dd.addToGroup('group1');



elZone= Ext.get('div1');

elZone.dropZone = new Ext.dd.DropZone(elZone, {
ddGroup:'group1',

onNodeEnter : function(target, dd, e, data){
alert('1');
},
onNodeDrop: function(target, dd, e, data){
alert('2');

},
onNodeOver: function(target, dd, e, data){
alert('3');
},
onDropOver: function(target, dd, e, data){
alert('4');
},

onNodeOut : function(target, dd, e, data){
alert('5');
}
});

Can someone tell me where is the problem

Condor
28 Dec 2010, 1:42 AM
Did you read this (http://www.sencha.com/blog/2009/09/13/5-steps-drag-and-drop-with-ext-js/)?

brasmouk
28 Dec 2010, 2:23 AM
I start with Ext.DD :">