Hi,<br><br>I use GeoServer as WMS service provider. Does exist the possibility to add a listener to the OpenLayers.Layer.WMS <br>object in order to catch the 'onerror' event ? I noticed that the 'onerror' event is not present in the OpenLayers.Map.<br>
<br><br>Best regards,<br><br>Tobia Di Pisa <br><br><div class="gmail_quote">2009/10/15 <span dir="ltr"><<a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I don't think you can currently. You can use onerror of the img, but it<br>
won't give you the contents.<br>
<br>
A way would be loading the images through AJAX, which has disadvantages as<br>
well (same origin policy and needs changes to OpenLayers).<br>
<br>
Maybe the new WMS POST layer has a facility for this, but I don't know if<br>
your WMS service supports POST?<br>
<br>
<a href="http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Layer/WMS/Post.js" target="_blank">http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Layer/WMS/Post.js</a><br>
<br>
Best regards,<br>
Bart<br>
<div><div></div><div class="h5"><br>
> Hi all,<br>
><br>
> I have to effect the WMS requests specifying as parameter ' exceptions:<br>
> "application/vnd.ogc.se_xml" ' insteed ' exceptions:<br>
> "application/vnd.ogc.se_inimage" '.<br>
> How can I catch the server response in the case that the exception is<br>
> verified?<br>
><br>
><br>
> Regards,<br>
><br>
> Tobia Di Pisa<br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
> <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
><br>
<br>
<br>
<br>
</blockquote></div><br>