<div>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:</div><div><br></div><div>dataTransfer.setRemoteData(mimeType, url);</div>
<div><br></div><div>That could allow for both file downloads and/or lazy loading of data transfers for any type.</div><div><br></div><div>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.</div>
<br><div class="gmail_quote">On Fri, Aug 28, 2009 at 4:25 AM, Ian Hickson <span dir="ltr"><<a href="mailto:ian@hixie.ch">ian@hixie.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, 17 Aug 2009, Jian Li wrote:<br>
><br>
> The HTML 5 spec defines the event-based drag-and-drop mechanism that<br>
> could cross the browser boundary. If a draggable element contains a URL,<br>
> dragging it out of the browser will only copy the URL value. However, in<br>
> some scenarios, we really want to download the data file from the<br>
> specified URL, instead of copying the value. Here we propose a way to<br>
> allow dragging a virtual file denoted by an URL out of the browser<br>
> boundary.<br>
<br>
</div>I haven't added this to HTML5, since we've only just gotten as far as<br>
getting drag and drop of files _in_ to HTML.<br>
<br>
However, I've noted this for a future version.<br>
<font color="#888888"><br>
--<br>
Ian Hickson U+1047E )\._.,--....,'``. fL<br>
<a href="http://ln.hixie.ch/" target="_blank">http://ln.hixie.ch/</a> U+263A /, _.. \ _\ ;`._ ,.<br>
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'<br>
</font></blockquote></div><br>