shed
16 Aug 2007, 9:59 PM
Hi,
I have problems with my DrogTarget in IE. In Firefox my example works fine. I have a grid where I can drag the items. And I have some DropTargets. In this example I differ between two ddGroups to do different things.
If I drop an item of the grid on this target in IE the notifyDrop method will be called infinitely. I don't know whats wrong because in Firefox my example works.
Thanks!
Regards,
shed
var dropZone = new Ext.dd.DropTarget(this.el._mask, {ddGroup: 'group2', scope: this});
new Ext.dd.DropTarget(this.el._mask, {ddGroup: 'group1', scope: this});
dropZone.notifyDrop=function(dd, e, data) {
if(dd.ddGroup == "group1") {
this.scope.myMethod1(this.scope.view, dd, e, data);
}
else if(dd.ddGroup == "group2") {
this.scope.myMethod2(this.scope.view, dd, e, data);
}
}
I have problems with my DrogTarget in IE. In Firefox my example works fine. I have a grid where I can drag the items. And I have some DropTargets. In this example I differ between two ddGroups to do different things.
If I drop an item of the grid on this target in IE the notifyDrop method will be called infinitely. I don't know whats wrong because in Firefox my example works.
Thanks!
Regards,
shed
var dropZone = new Ext.dd.DropTarget(this.el._mask, {ddGroup: 'group2', scope: this});
new Ext.dd.DropTarget(this.el._mask, {ddGroup: 'group1', scope: this});
dropZone.notifyDrop=function(dd, e, data) {
if(dd.ddGroup == "group1") {
this.scope.myMethod1(this.scope.view, dd, e, data);
}
else if(dd.ddGroup == "group2") {
this.scope.myMethod2(this.scope.view, dd, e, data);
}
}