Logo
  Sunday, May 20, 2012
Sign-In  |  Sign-Up  |  Contact Us  | Bookmark |  RSS Feed

HTML5 Tutorial FeedBurner

HTML5 Drag and Drop Key Concepts  
These days usage of smartphones and other touch screen enabled devices makes drag and drop feature of any application essential. It is difficult task to implement drag and drop on the web and make it work consistent across multiple browsers and platforms. Traditionally, web developer relied on several DOM events to develop drag and drop capability in their web applications. They relied on such DOM events as: mousedown, mousemove, mouseout, mouseup and mouseover. Developing Drag and Drop using these low level events is cumbersome at best and prone to lots of error when other content type is added to web page.

HTML5 Drag and Drop is modeled after desktop based application. As a result, HTML5 drag and drop is easy to implement and requires less development effort.

There are several important concepts that we need to cover while reviewing HTML5 drag and drop functionality. First, there are two different places that we need to account for: Drag Source and Drop Target. In addition, there is another concept we need to be aware of The Data Transfer. This Data Transfer object exposes a lot of information to use during drag and drop process. For instance, it exposes information about actual move of the object, type of the object (text, link, image) and other useful drag operation specific info. It is important to note that MIME of the object can influence how drop target reacts to the object being drag across the careen and placed into drop target zone.

Print HTML5 Drag and Drop Key Concepts Bookmark HTML5 Drag and Drop Key Concepts

Related Articles  
HTML5 Drag and Drop Events
Let us look at the HTML drag and drop event flow in order to understand how HTML5 executes drag and drop operation ...
Adding Placeholder Text in HTML5 Input Fields
HTML5 has new way of adding this text via input attribute called "placeholder". You can assign text to this placeholder ...
HTML5 dataTransfer object
The HTML5 dataTransfer object is part of drag and drop feature in HTML5. It is the main object that holds information ...
HTML5 Custom Tags
The HTML5 allows you to customize an input tag. The HTML input tag can be modified to allow custom validation in a more ...
HTML5 Email Input Type Tag
HTML5 introduced several new input types. On the important types is email input type. HTML5 Email Input type creates a ...
HTML5 Forms Browser Support
HTML5 forms allow creation of highly interactive web pages. Moreover, HTML5 provide for faster and efficient form data ...
More