Join Bill Weinman for an in-depth discussion in this video Using a drop zone, part of HTML5: Drag and Drop in Depth.
- View Offline
There is a couple of things you need to see.…First of all, in our image you will notice there is another attribute here…called data value, and its value is in quote marks I Am a Rock, and that's the payload.…And down in the div for dz1, you will notice there's an attribute call dropzone,…
- Detecting drag and drop support
- Using the HTML5 draggable and dropzone attributes and onDragStart event
- Exploring different events
- Receiving drops with or without a drop zone
- Creating a simple game