The Script.aculo.us library provides UI effects such as drag and drop. It is built upon the Prototype javascript library.
The following application files demonstrate drag-and-drop functionality. They assume a Task data model with the name (string) and done (boolean) fields.
Here's the full application.