Drag & Drop on webpages
Anyone who has the necessity to drag & drop images or layers should look into the DHTML API, Drag & Drop for Images and Layers. Its a really cool API as I played around it quite a bit. Most importantly this library is a free software and released under LGPL.
The thing I like the most is the extendability of certain features. Also it has a very good documentation. I could easily add JavaScript code when an image is dragged or when dropped. I used Ajax in this case. When the user drags and drops an image I updated its position via Ajax to his user record on the server. So next time he logs in I could load the image in the position where he placed it last. Some basic stuff like that. It could really add a lot of interactivity to a webpage.
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.








