Drag and Drop Element Coordinates

have you looked at the script.aculo.us drag/drop js library? it's
distributed with RoR and there are even helpers in RoR for it.

http://wiki.script.aculo.us/scriptaculous/show/DragAndDrop

http://api.rubyonrails.org/classes/ActionView/Helpers/ScriptaculousHelper.html