jQuery UI Drag X,Y,Z coordinate on different browser or screen dimensions

jQuery UI Drag X,Y,Z coordinate on different browser or screen dimensions

Hello,

Just wondering how to fix the problem of screen resolution changing or different browsers: I use jQuery UI Draggable window (and I store the X,Y,Z coordinates in the database) on one of the pages. However, when I try visiting the page on a different screen resolution, or sometimes a different browser, I find the box's position incorrect.

Any thoughts on how this would best fixed the best?

Thanks!