In many browsers today you can click and drag images. Can I leverage this in any way? Could I receive an event when an image is dragged and dropped on top of another image in the same browser window?
+1
A:
I guess you could do it easily with http://script.aculo.us/
I know it works for block elements, not sure about inline though
vrinek
2009-10-29 11:32:59
I have seen that plug-in. Thanks! I was hoping for an easier way, but looks like you are right.
Jamey McElveen
2009-10-30 14:20:34
+1
A:
I think this can be done by any Javascript framework (JQuery, Scriptaculous, MooTools, Dojo) as vrinek says. You could also cook up your own Javascript solution, but stable dragging and dropping routines are at the core of most frameworks.
I think whether an element is a block or inline doesn't really matter as you can set the properties for this as well in CSS.
mensch
2009-10-29 11:35:56
+1
A:
A number of browsers now support the Drag and Drop API, though not Internet Explorer, which (as usual) has its own way of doing things. If you're looking for a cross-browser solution that works today, one of the libraries is still your best bet.
NickFitz
2009-10-29 12:25:19