Webkit ondrop event while dragging?

The HTML5 Spec's default behavior is to automatically cancel then drag action on dragOver/drageEnter unless you cancel (return false and e.preventDefault()) that event yourself. It shouldn't be canceling the drag action at all It seems a bit odd at first. But I use this code and it works aDivElement.

Ondrop = function(e) { alert("yo"); }; aDivElement. Ondragenter = function(e) { e.dataTransfer. DropEffect = 'move' e.preventDefault(); return false; }; aDivElement.

Ondragover = function (e) { e.dataTransfer. DropEffect = 'move'; e.preventDefault(); return false; }.

The HTML5 Spec's default behavior is to automatically cancel then drag action on dragOver/drageEnter unless you cancel (return false and e.preventDefault()) that event yourself. It shouldn't be canceling the drag action at all. It seems a bit odd at first.

But I use this code and it works. ADivElement. Ondrop = function(e) { alert("yo"); }; aDivElement.

Ondragenter = function(e) { e.dataTransfer. DropEffect = 'move' e.preventDefault(); return false; }; aDivElement. Ondragover = function (e) { e.dataTransfer.

DropEffect = 'move'; e.preventDefault(); return false; }.

Tried this and it does work, the problem if you apply this to designMode='on' where the users can drag anywhere and if I apply e.preventDefault() then the user's drag action is cancelled and the functions on drop would be wrong for I need to do some manipulation based on where the user drop the item. Any Idea on this? Thanks – monmonja Apr 23 '10 at 2:41.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send