View Full Version : Drag drop and save

01-05-2006, 10:49 AM
Hi all,
I have 4 images and they are showing besides each other and their path is stored in database.can i change there order just drag and drop and then save this order using javascript and php. If any one have done anything iin this matter,please reply.

01-07-2006, 12:55 AM
Take a look at this:

You could containt the images in div tags, and use this Javascript to move them around (you should just allow them to be dragged inside a given area). Then you can get the offset to the divs to see where they are positioned acording to each other.