Ajax Drag and Drop Sortable Demo
Below is a sample of using ajax to update the image order in a database.
Drag and Drop an image below to reorder the images in the database.
This sample uses the Scriptaculous and Prototype libraries. The inspiration for this example is Thomas Fuchs's library at http://script.aculo.us and is an alteration/combination of several code postings by Greg Neustaetter www.gregphoto.net.