Skip to Main Content
HTML5 & CSS3 (Prags)
book

HTML5 & CSS3 (Prags)

by Brian P. Hogan
May 2012
Intermediate to advanced content levelIntermediate to advanced
280 pages
5h 36m
German
O'Reilly Verlag
Content preview from HTML5 & CSS3 (Prags)

11.3 Native Unterstützung für Drag-and-Drop

Das Drag-and-Drop von Oberflächenelementen können wir unseren Benutzern schon eine ganze Weile mit JavaScript-Bibliotheken ermöglichen. Aber mittlerweile hat das W3C die Drag-and-Drop-Implementierung von Microsoft als Teil der HTML5-Spezifikation übernommen.[85] Sie wird von Firefox, Safari, Internet Explorer und Chrome unterstützt, ist aber faktisch das reinste Chaos.

Auf den ersten Blick scheint die Implementierung unkompliziert zu sein. Wir bezeichnen ein Element als „draggable“, bestimmen ein Element, das auf „fallen gelassene“ Elemente wartet, und führen einen bestimmten Code aus, wenn das geschieht.

In der Realität ist es nicht mal annähernd so einfach. Wir demonstrieren das an einer einfachen Drag-and-Drop-Oberfläche, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

HTML5, JavaScript und jQuery

HTML5, JavaScript und jQuery

Dane Cameron
Workshop HTML5 & CSS3

Workshop HTML5 & CSS3

Stephan Heller

Publisher Resources

ISBN: 9783868992670Purchase bookSupplemental Content