What are the best lightweight solutions for drag and drop?

I love and use jQuery quite a lot, but I hope to find an alternative solution for a special project.

I am creating a bookmarklet that will interact with my application so that users can enter information faster. One of the biggest problems in my application at the moment is loading images. Users (understandably) hate the process of downloading images to their computers in an organized manner, and then download them to the application.

What I would like to do in the bookmarklet is to load a small div overlay with a few small controls , including one that allows the user to drag and drop images from the current page into the control . The script then collects the URIs of these img tags and sends them along with the form to the application, and then the server automatically loads the application.

So, for this task, loading jQuery and jQuery UI onto the page every time you click on the bookmarklet seems very time consuming.

Can anyone recommend a nice, lightweight, javascript toolkit that handles drag and drop functions and nothing more?

I was glad to read about the new DragDealer tool, which looks amazing, only today on ajaxian, but it seems that it is built to handle only drag and drop and not β€œdrop” (ie not goals)

+6
javascript javascript-events drag-and-drop draggable
source share
3 answers

I think that the library may not be the best solution and just try to find a plugin / widget for a function / standalone user that just delivers this function to you, for example

+5
source share

The REDIPS.drag JavaScript library only covers drag and drop (table contents). In fact, the HTML table is used as a layout, and DIV elements can move through the cells of the table. The moment the drag and drop item is above the table cell, the table cell will be highlighted - if it is on. Minimized and gzipped, the library is less than 10Kb. Here is a link to the demo page:

http://www.redips.net/javascript/drag-and-drop-table-content/

+1
source share

I think one of the most popular for you might be the script.aculo.us found in

http://script.aculo.us/

0
source share

All Articles