I am discussing this right now with Stefan and I will inform you if we will add it to Interface.
2006/10/13, Lolo <[EMAIL PROTECTED]>:
Hi Paul,
Thanks for your answer, your solution will certainly work, but as you say,
it is not the fanciest way...
It would be great to have the ondrop event passed in parameter to ondrop
event handler.
I kept going to find out the following workaround, but I really don't know
if it will be kept in the future releases, because I am using the
undocumented dragCfg property.
$('#mydiv').Droppable({accept:'myimageclass',ondrop:function(drag)
{
/* How can I access the screen or client mouse coordinate here ? */
x = drag.dragCfg.currentPointer.x,
y = drag.dragCfg.currentPointer.y
}
});
Not the fanciest way neither, but slightly shorter...
--
View this message in context: http://www.nabble.com/JQuery-interface-plugin%3A-ondrop-mouse-position---tf2425125.html#a6792034
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
--
Paul Bakaus
Web Developer
------------------------
Hildastr. 35
79102 Freiburg
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/