View Full Version : Picture : Drag and drop, how to do ?

26 Apr 2007, 2:38 AM
Hi !
I want to allow users to reorganize pictures. The best will be thumbs of pictures and the users can drag and drop the thumbs. Picture will be organize like a thumb mode in windows explorer. When the user will drop a thumb, the picture will insert in the new position.

Have you any idea how to process or better an example ?

Thanks a lot.

26 Apr 2007, 8:38 AM
Maybe the Imager Organizer example could help you at least with basics of D&D.

It is also worth to look in doc for DragSource, DropTarget, DragZone, DropZone and Registry.

26 Apr 2007, 10:03 PM

Actualy in the Imager Organizer you can't drag an drop the picture in the right view to change its position. You only can drag and drop to the left tree.
In fact I need a simple drag and drop. Pictures contains in div ( I think), show in another parent div ( maybe the source of contenPanel or other) and drag and drop the picture in the parent div to change the position and get the list of the position of the different items (pictures) when I want.

I don't find any examples about simple drag and drop.


26 Apr 2007, 10:41 PM
How about using YUI D&D?

Check out this e.g.