Wednesday, September 3rd, 2008
Ernest Delgado put together work from an earlier project, and the realization that textareas are native drop targets, to create Drag and Drop without Drag and Drop.
Something that I never realized before is that text areas are drop targets by default. Using this property alone (without registering drag events on the source elements), we can emulate drag and drop behavior of non-linked images between different documents.
Put together the layers, with canvas, and a hidden transparent text area, and you get the following architecture:
Then, check out the demo that allows you to drag between gadgets. Take images from the right hand magnet, and paste them onto the fridge!
Posted by Dion Almaer at 7:02 am