<p><font size=3>I would do something like this. Hope this help.</font>
<br><font size=3>theControl.events.register("getfeatureinfo",
this, showInfo);</font>
<br>
<br><font size=3>function showInfo(evt) </font>
<br><font size=3>{</font>
<br><font size=3> if( evt.text != "\n" &&
evt.text != "")</font>
<br><font size=3> map.addPopup(......);</font>
<br><font size=3>}</font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Manuel Aymerich"
<maymerich@argongra.es>@openlayers.org</b> </font>
<br><font size=1 face="sans-serif">Envoyé par : users-bounces@openlayers.org</font>
<p><font size=1 face="sans-serif">15/06/2010 06:05 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif"><users@openlayers.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[OpenLayers-Users] WMSGetFeatureInfo
hangs when getfeatureinfo returns no
results</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=2 face="Arial">Hi,</font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial">I am using openlayers 2.9 together with mapsever
5.6. I am retrieving queries with OL control WMSGetFeatureInfo() and getfeatureinfo
event. Up to this point everything works fine, being able to show query
results when the user clicks on a queryable map feature. However if the
user clicks the map on a zone where no features are available, the mouse
cursor moves to the loading state (hourglass icon), and waits for a response
that doesn’t seem to arrive. The mapserver logs show that no result was
returned (… GetFeatureInfo Results: Search returned no results). However,
it seems that OL is not able to handle this response and remains waiting
in this state until the user performs another operation. </font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial">Any suggestions about how behaviour could
be fixed? Shouldn’t OL handle the no result exception case?</font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial"> Thanks in advance,</font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial">Manuel</font>
<br><font size=2 color=#000080> </font>
<br><font size=2 color=#000080 face="Arial"> </font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Times New Roman"> </font><tt><font size=2>_______________________________________________<br>
Users mailing list<br>
Users@openlayers.org<br>
http://openlayers.org/mailman/listinfo/users<br>
</font></tt>
<br>
<br>
<br>