Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5. User Interactions > Hack 48. Drag Files In and Out of Your Web Application

Hack 48. Drag Files In and Out of Your Web Application

No longer are you constrained by the limits of your browser window. HTML5 drag-and-drop can move files from the cloud to your computer, and files from your computer to the cloud—all with just a few lines of JavaScript.

HTML5 has the power to process data right within the browser, without going to the server. From text to images to video, HTML5 has the horsepower. Along with that, HTML5 drag-and-drop gives us an easy interface for getting data into and out of the browser. We simply grab the data from our operating system and drop it into our browser. In this hack we will transfer files to the OS from our browser, and then back into our browser from the OS. Let’s start by dragging data to our OS from the browser.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint