O'Reilly logo

Pro HTML5 with Visual Studio 2012 by Mark Collins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 14

image

Drag and Drop

The ability to select an element and drag it to another location is an excellent example of a natural user experience. I can still remember the early Apple computers where you could delete a file by dragging it onto a trash can icon. This action, and hundreds more like it, are a key component of user experiences found on desktop applications. Web applications, however, have lagged far behind in this arena. With the drag and drop (DnD) API in HTML5, you’ll find web applications rapidly catching up.

In this chapter you’ll build a web application that implements a Checkers game, using the DnD API to move the pieces around ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required