Drew Cox
2005-Oct-17 03:32 UTC
Passing a draggable element''s attributes to controller on drop
I''ve browsed the list and noticed a few similar questions in the archive about maintaining the position of a draggable element after dropping it ... but I couldn''t find any conclusion about the problem. Has there been anyone found or implemented a solution? Or does prototype still need to be extended to allow the persistence of the draggable object''s position? I''m just trying to drag divs around the page and have them keep their position when I drop them (I *think* what I want to do is just pass the difference between originalLeft and originalTop and the moveTo values to the controller and just update that record''s coordinate fields in the database). Is this possible? dc
Drew Cox
2005-Oct-17 03:39 UTC
Passing a draggable element''s attributes to controller on drop
or ... subject:"How do you maintain a draggable object''s position after drop" I''ve browsed the list and noticed a few similar questions in the archive about maintaining the position of a draggable element after dropping it ... but I couldn''t find any conclusion about the problem. Has there been anyone found or implemented a solution? Or does prototype still need to be extended to allow the persistence of the draggable object''s position? I''m just trying to drag divs around the page and have them keep their position when I drop them (I *think* what I want to do is just pass the difference between originalLeft and originalTop and the moveTo values to the controller and just update that record''s coordinate fields in the database). Is this possible? dc