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