That's just the position of the draggable (which you've called
'droppped'), right? Maybe: $(dropped).css('left') and
$(dropped).css('top').

Or you could use a function on the onDrag event of the draggable that
updates some local variables to save the last position:
var x;
var y;
$(...).Draggable({
 ...,
 onDrag: function(currentX, currentY) {
   x = currentX;
   y = currentY;
 }
});

Also, it looks like the current position is stored internally in the
Draggable somewhere. Maybe try one of these:
dropped.dragCfg.currentPointer.x
dropped.dragCfg.nx
dropped.dragCfg.nRx

Good luck with it.

--Erik


On 6/26/07, Michael Fuerst <[EMAIL PROTECTED]> wrote:

Is there a way to acces the drop-event in "ondrop" in a doppable? I
needs the coordinates to show a popup menue:


$(this).attr('isdropabled', '1').Droppable(
{
 ...,
        ondrop                  : function(dropped)
        {
                showPopUpMenu(event, $(dropped).attr('title'), 
$(this).attr('title'));
        }
});

Michael

Reply via email to