The trunk version of dialog updates the position when the dialog is
moved, so you can ask the plugin for the position option and it will
be correct. If you need to stay on a stable version, you can see the
full logic for how to get the correct position on dragStop by looking
at how we calculate the final position in the trunk version (just
search for dragStop).

// get position
$(el).dialog('option', 'position');

trunk version:
http://jquery-ui.googlecode.com/svn/trunk/ui/jquery.ui.dialog.js

On Sep 23, 8:03 am, Nate Laws <[email protected]> wrote:
> Hi Steve, I would recommend using the dialog dragStop 
> eventhttp://jqueryui.com/demos/dialog/#event-dragStop
>
> Then grab the values in ui.offset or ui.position and store it with the
> jquery cookie plugin.
>
>
>
> On Wed, Sep 23, 2009 at 3:04 AM, Steve <[email protected]> wrote:
>
> > I've got a dialog box displayed on a page which is moveable.  I want
> > to be able to get the position of the dialog after it's been moved and
> > store it in a cookie so the next time the user loads the page the
> > positions of the dialogs are retained.
>
> > Can you let me know how to do this?
>
> > Thanks
>
> > Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to