[Laszlo-user] "download" the XML from a dataset
Henry Minsky
henry.minsky at gmail.com
Tue May 13 12:35:02 PDT 2008
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 <greg.denton at gmail.com> 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 <henry.minsky at gmail.com>
> 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 <greg.denton at gmail.com>
> 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
> > hminsky at laszlosystems.com
> >
> >
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20080513/d039ac7c/attachment.html
More information about the Laszlo-user
mailing list