[OpenLayers-Dev] append a "onload" event to a "onerror" event

Domenico Febbo domenico.febbo at gmail.com
Tue Apr 24 05:59:26 EDT 2007


I need to handler a load event about a fix tile, if requested tile is
unavailable.
I've modified method:
OpenLayer.Util.onImageError
with added this code:
------
this.src = "img/sorry.png";
OpenLayers.Event.observe(this, "load",
                          OpenLayers.Util.imageDraw.bindAsEventListener
(this));
-----

In FF this new method "imageDraw" is called fine,
but in IE6 isn't called.

Where is my mistake?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20070424/43193575/attachment.html


More information about the Dev mailing list