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.

2 Responses to “How to Drag Out Files Like Gmail”

steve_wechsler August 26th, 2010 at 5:46 pm

How can I upload a lot of messages to gmail?
I am trying to consolidate all my email in gmail. I connect to it using Outlook 2007 over IMAP and SMTP.

I have several thousand messages saved in a local Outlook .PST file that I would like to move to an existing folder in gmail, but every time I try to drag and drop more than a couple of messages at a time, Outlook freezes and then needs to be restarted. I can export these files to a different format if need be, and I’m not tied to Outlook (although I do like the immediate search in 2007), I’m willing to switch to T-bird.

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 :

Leave a Reply