Re: [jQuery] Drag&Drop-Determine (cursor) relative location of the draggable within the droppable

2009-11-05 Thread Michel Belleville
Indeed you're using the right callback. Now you might use substract the droppable's coordinates relative to the document ( http://docs.jquery.com/CSS/offset) to the clientX and clientY and guess what you'll get ?... Now to know wether you're on the top / bottom | left / right corner, you may use th

[jQuery] Drag&Drop-Determine (cursor) relative location of the draggable within the droppable

2009-11-05 Thread Steve
I'm trying to determine where the cursor (while dragging the 'draggable' element) falls within the 'droppable' element (top half, bottom half, leftside, or rightside?). I'm trying to use the 'drop' event in the 'droppable' element, but don't know how to determine the cursor coordinates relative to