[OpenLayers-Dev] Loading img with Ajax to be able to cancel loading?

Tim-Hinnerk Heuer th.heuer at gmail.com
Mon Mar 19 06:18:07 EDT 2012


Yes, and there is the same origin policy which i hadn't thought about when
I wrote this. Just had a sudden hinch and thought I would put it out for
discussion.

On Mon, Mar 19, 2012 at 10:23 PM, Tom Payne <tom.payne at camptocamp.com>wrote:

> On 19 March 2012 08:27, Andreas Hocevar <ahocevar at opengeo.org> wrote:
> > loading raw image data with Ajax requires client-side Base64 encoding
> > to create a data URI, which would be very expensive.
>
> Note that modern browsers have the window.atob and window.btoa
> functions that offer base64 encoding and decoding at native speeds:
>
> https://developer.mozilla.org/en/DOM/window.atob
> https://developer.mozilla.org/en/DOM/window.btoa
>
> Regards,
> Tom
>
> --
> Camptocamp SA
> Tom PAYNE
> PSE A
> CH-1015 Lausanne
>
> +41 21 619 10 13 (direct)
> +41 21 619 10 10 (centrale)
> +41 21 619 10 00 (fax)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20120319/368618ec/attachment.html


More information about the Dev mailing list