Hello everybody,

I cannot cancel a drop event after an Ajax failure, e.g.

function dropHandler(dropEvent) {
...
dropEvent.cancel = false;
Ext.Ajax.request {
...
failure: {
dropEvent.cancel = true;
alert("On failure: "+dropEvent.cancel);
}
}
alert("After request: "+dropEvent.cancel);
}

First the "After request: false" message is printed, then the "On failure: true" but it is late. How can I affectively cancel the drop on ajax failure? Any tips?

Thanks in advance
George