How to Drag Out Files Like Gmail
Ryan Seddon, aka the CSS Ninja, has a nice blog post up where he reverse engineers the new feature in Gmail where you can drag attachments from an email on to your desktop.
Note that the feature only currently works in Chrome.
Ryan begins with the following code:
PLAIN TEXT
JAVASCRIPT:
var file = document.getElementById(”dragout”);
file.addEventListener(”dragstart”,function(evt){
evt.dataTransfer.setData(”DownloadURL”,fileDetails);
},false);
Describing the code Ryan says:
From [...]
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
This entry was posted on Thursday, August 26th, 2010 at 5:46 pm and is filed under Javascript. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.



Richie August 26th, 2010 at 10:48 pm
I have outlook 200 and i can say it doesnt handle mass transfers well at all with imap!
can you do portions at a time? Thats what i did. Or i set it to transfer, and i went to sleep.
References :