snook.ca — A drag and drop essentially consists of a few events (and by events, I mean, moments in time, not DOM events). There's the moment a drag is started, there's the continuous dragging of an item, and finally there's the moment the item is no longer being dragged (ie: the drop). The items being dragged are sometimes referred to as draggables.
Nov 20, 2006 View in Crawl 4
acteonNov 21, 2006
Interesting read, although finding real-world examples was a little difficult. <a class="user" href="http://www.gamingtextures.com">http://www.gamingtextures.com</a> has a very good implementation of JavaScript dragging.
ephemeraeNov 21, 2006
i like it.
akkumaNov 21, 2006
Personally, I've found all these libraries to be awful for very flexible drag and drop. For instance, I am currently making something that allows you to select numerous 'objects' with ctrl/shift and then drag em all at once. If I wanted to do this in basically any library it would be a pain in the ass, as they handle it all.What they all seem to lack is the 'extreme' amount of flexibility I've come to need and the amount of code for drag and drop is not that hard to begin with. Why bother with a pigeon hole solution, when custom code can be made fast for non trivial events? On the other hand, you can screw around with their library making it incompatible for future updates or spend more time trying to figure out how to make what they give you work for your situation.
jonathansnookNov 21, 2006
Tell me about it. I put this together to help dispel some of the myth that drag and drop is complicated to pull off. After using a bunch of these libraries, I end up rewriting half of it to do what I need to do.