W
wolverine
Hi Friends,
I want to know what all ways in which drag & drop can
be accomplished in javascript. I googled and saw 2
1) using ondrag & ondrop events
2) using onmousedown, onmousemove and onmouseup events.
I
I have a doubt here. I initially thought like it is necessary to have
mousedown, mousemove and mouseup to be attached to same element for
doing drag & drop. I saw a link which gave an example which had
mousedown and mousemove attached to source(dragged) element and
onmouseup attached to document element.
http://www.webreference.com/programming/javascript/mk/column2/
Could any one give me some idea about the various combinations of
attaching these events to source element, target element or document
element and still accomplishing drag & drop.
Thanks in Advance,
Kiran.
I want to know what all ways in which drag & drop can
be accomplished in javascript. I googled and saw 2
1) using ondrag & ondrop events
2) using onmousedown, onmousemove and onmouseup events.
I
I have a doubt here. I initially thought like it is necessary to have
mousedown, mousemove and mouseup to be attached to same element for
doing drag & drop. I saw a link which gave an example which had
mousedown and mousemove attached to source(dragged) element and
onmouseup attached to document element.
http://www.webreference.com/programming/javascript/mk/column2/
Could any one give me some idea about the various combinations of
attaching these events to source element, target element or document
element and still accomplishing drag & drop.
Thanks in Advance,
Kiran.