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 &#39;onerror&#39; event ? I noticed that the &#39;onerror&#39; 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">&lt;<a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a>&gt;</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&#39;t think you can currently. You can use onerror of the img, but it<br>
won&#39;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&#39;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>
&gt; Hi all,<br>
&gt;<br>
&gt; I have to effect the WMS requests specifying as parameter &#39; exceptions:<br>
&gt; &quot;application/vnd.ogc.se_xml&quot; &#39; insteed &#39; exceptions:<br>
&gt; &quot;application/vnd.ogc.se_inimage&quot; &#39;.<br>
&gt; How can I catch the server response in the case that the exception is<br>
&gt; verified?<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt;       Tobia Di Pisa<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
<br>
</blockquote></div><br>