[whatwg] Proposal to drag virtual file out of browser
Sebastian Markbåge
sebastian at calyptus.eu
Thu Aug 27 23:48:38 PDT 2009
For future reference, I posted another suggestion to the public-webapps
list. Instead of specifying a download URL, you could specify a URL on a
type as the source of the data:
dataTransfer.setRemoteData(mimeType, url);
That could allow for both file downloads and/or lazy loading of data
transfers for any type.
It still doesn't provide a way for lazy loading of application created
content. Perhaps something like: dataTransfer.setLazyData(mimeType,
callback); would be appropriate for this.
On Fri, Aug 28, 2009 at 4:25 AM, Ian Hickson <ian at hixie.ch> wrote:
> On Mon, 17 Aug 2009, Jian Li wrote:
> >
> > The HTML 5 spec defines the event-based drag-and-drop mechanism that
> > could cross the browser boundary. If a draggable element contains a URL,
> > dragging it out of the browser will only copy the URL value. However, in
> > some scenarios, we really want to download the data file from the
> > specified URL, instead of copying the value. Here we propose a way to
> > allow dragging a virtual file denoted by an URL out of the browser
> > boundary.
>
> I haven't added this to HTML5, since we've only just gotten as far as
> getting drag and drop of files _in_ to HTML.
>
> However, I've noted this for a future version.
>
> --
> Ian Hickson U+1047E )\._.,--....,'``. fL
> http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
> Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090828/f782a5e4/attachment.htm>
More information about the whatwg
mailing list