News for hackers. Stuff that matters.
Re:Drag and Drop with HTML5 (plus source code) by wsbail29 on Thursday July 23, 2009 @11:38AM (#719722)
here's the direct link to the sourcecode for the DropManager class extracted from our work on this feature.

http://gist.github.com/153019

from the docs... The DropManager class provides a pleasant API for observing HTML5 drag-n-drop events, cleaning up the data that they return, and triggering the appropriate callbacks. With the drag and drop API so far, there are generally three types of data we're interested in: HTML, URLs, and plain text. On drop, your callback will receive a pre-processed drop object with corresponding 'url', 'html' and 'text' properties.

There are no comments on this comment yet.