W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2011

[whatwg] Indicate a file name for data: URLs?

From: Philip Jägenstedt <philipj@opera.com>
Date: Mon, 21 Mar 2011 13:05:23 +0100
Message-ID: <op.vsozu9pmsr6mfa@localhost.localdomain>
On http://foolip.org/microdatajs/live/#json I have a "Download it!"  
function which uses data: URLs to save JSON generated by JavaScript. The  
only real limitation with this approach is that one cannot suggest a file  
name, so in Opera the suggested file name is "default".

Are there other ways to save script-generated data that don't involve  
bouncing against a server? If not, any ideas how one might fix this with  
data: URLs? The Content-Disposition header solves this problem, but can't  
be applied here.

-- 
Philip J?genstedt
Core Developer
Opera Software
Received on Monday, 21 March 2011 05:05:23 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:31 UTC