biju wrote: > How to embed filename in data: url? > I would like to create a file download with proper filename from > JavaScript without using a server round trip. > I was planning to do it using data: url it gives proper mime-type, > but how can I add filename also in data: url? > > TIA > Biju In Firebug I put the filename as a parameter of the media type: data:text/javascript;fileName=x%2Cy.js;baseLineNumber=10,<the-url-encoded-data> You can put name/value pairs after the media type and before the comma. Of course you have to url encode the parameter values.
John. _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
