I've never seen any web application do that, actually. There are definitely security restrictions in Flash that prevent the running app from directly accessing the disk. The browser almost surely expects to download files via an HTTP connection, and there is no way I know of to serve HTTP requests from within a Flash application.
In DHTML, there is a mechanism called data URI http://en.wikipedia.org/wiki/Data:_URI_scheme which lets you encode a document as a string, and open it in the browser, but I don't know which browsers actually support it, and whether you could download a page which was created that way. On Tue, May 13, 2008 at 3:25 PM, Greg Denton <[EMAIL PROTECTED]> wrote: > Yes, but my question (which may be a dumb one as I'm new to > browser/javascript programming) is how to make that string look like a > download, i.e. how does one create a button that will pop up a > "download file" box so the user can store the string in a file. > Thanks. > > On Tue, May 13, 2008 at 12:20 PM, Henry Minsky <[EMAIL PROTECTED]> > wrote: > > You can serialize the dataset, call yourdataset.serialize(), it makes a > > string of XML. > > > > > > > > > > On Tue, May 13, 2008 at 3:02 PM, Greg Denton <[EMAIL PROTECTED]> > wrote: > > > > > Is there a way to have the XML contents of a dataset made available to > > > the browser similar to a download from a URL? In other words, the > > > laszlo app has a dataset and the user wants to get a copy without > > > having to hit a server somewhere. Thanks. > > > > > > > > > > > -- > > Henry Minsky > > Software Architect > > [EMAIL PROTECTED] > > > > > -- Henry Minsky Software Architect [EMAIL PROTECTED]
