[jquery-ui] Re: problem with position of draggable object

2008-11-19 Thread dirk w
hi, thanks for that! i read about the ui.position stuff but i didn't know how to use it. now ik now that i have to pass (ev, ui) to the function. thanks for that! On 18 Nov., 16:46, patrick hull <[EMAIL PROTECTED]> wrote: > Helo, > > Something like the following works for me: > > $("#child").drag

[jquery-ui] Re: problem with position of draggable object

2008-11-18 Thread patrick hull
Helo, Something like the following works for me: $("#child").draggable({ drag: function(ev, ui) { var top = ui.position.top; var left = ui.position.left; /* do something */ } }); The docs outline this here: http://docs.jquery.com/UI/Draggables/draggable#options Best. On Nov 18, 7:37 am, di