[Laszlo-user] "download" the XML from a dataset

Henry Minsky henry.minsky at gmail.com
Tue May 13 15:22:54 PDT 2008


Yes, IE is always the fly in the ointment, so to speak.  Or maybe the fly in
your soup or some other equally
unappetizing metaphor.





On Tue, May 13, 2008 at 4:19 PM, Greg Denton <greg.denton at gmail.com> wrote:

> I don't want the app to save directly to disk, just pop something to
> allow the user to do it. "data:" does the trick on firefox, very cool.
> Check this out:
>
> <canvas debug="true" height="200" width="500">
>    <dataset name="foo">Here is some xml.</dataset>
>    <button onclick="LzBrowser.loadURL('data:text/xml,'+foo.serialize(),
> '_blank')">Click me</button>
> </canvas>
>
> No such luck in IE (7.0):
>    Protocol Type: data
>    Description: UnKnown
>    Windows does not recognize this Protocol.
>
> After a brief search, here's a "pluggable protocol handler" for IE
> "data:". Note that this project was created for basically the same
> reason, a AJAX app with data already in the browser.
> http://www.codeproject.com/KB/IP/DataProtocol.aspx?display=Print
>
> Thanks a bunch.
>



-- 
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/4b9ed96a/attachment-0001.html


More information about the Laszlo-user mailing list