Hello,<br>I&#39;m attempting to call getFeatureInfo from Openlayers to a geoserver instance.<br><br>Rigth now all I do is construct a GetFeatureInfo URL and supply that URL to a window.open method and it works fine, below is relevant code:<br>
<br>var wmsurl = &quot;<a href="http://dialga.npc.census.gov:8080/geoserver/wms">http://dialga.npc.census.gov:8080/geoserver/wms</a>&quot;;<br><br>map.events.register(&#39;click&#39;, map, function (e) {<br>    var url = wmsurl + &quot;?REQUEST=GetFeatureInfo&quot; + &quot;&amp;EXCEPTIONS=application/vnd.ogc.se_xml&quot;<br>
                            + &quot;&amp;BBOX=&quot; + map.getExtent().toBBOX()<br>                            + &quot;&amp;X=&quot; + e.xy.x<br>                            + &quot;&amp;Y=&quot; + e.xy.y<br>                            + &quot;&amp;INFO_FORMAT=text/html&quot;<br>
                            + &quot;&amp;QUERY_LAYERS=cira:addresses&quot;<br>                            + &quot;&amp;LAYERS=cira:addresses&quot;<br>                            + &quot;&amp;FEATURE_COUNT=50&quot;<br>                            + &quot;&amp;SRS=EPSG:900913&quot;<br>
                            + &quot;&amp;STYLES=&quot;<br>                            + &quot;&amp;WIDTH=&quot; + map.size.w<br>                            + &quot;&amp;HEIGHT=&quot; + map.size.h;<br><br>    window.open(url, &quot;getfeatureinfo&quot;, &quot;location=0,status=0,scrollbars=1,width=600,height=150&quot; );<br>
  });<br><br>But now I want to be able to use OpenLayers.loadURL method to make an AJAX request to the geoserver instance and get back the XMLHttpRequest obejct and extract the HTMl from the responseText member.<br><br>this is the code:<br>
<br>var wmsurl = &quot;<a href="http://dialga.npc.census.gov:8080/geoserver/wms">http://dialga.npc.census.gov:8080/geoserver/wms</a>&quot;;<br><br>map.events.register(&#39;click&#39;, map, function (e) {<br>    var url = wmsurl<br>
      + &quot;?REQUEST=GetFeatureInfo&quot;<br>      + &quot;&amp;EXCEPTIONS=application/vnd.ogc.se_xml&quot;<br>      + &quot;&amp;BBOX=&quot; + map.getExtent().toBBOX()<br>      + &quot;&amp;X=&quot; + e.xy.x<br>      + &quot;&amp;Y=&quot; + e.xy.y<br>
      + &quot;&amp;INFO_FORMAT=text/html&quot;<br>      + &quot;&amp;QUERY_LAYERS=cira:addresses&quot;<br>      + &quot;&amp;LAYERS=cira:addresses&quot;<br>      + &quot;&amp;FEATURE_COUNT=50&quot;<br>      + &quot;&amp;SRS=EPSG:900913&quot;<br>
      + &quot;&amp;STYLES=&quot;<br>      + &quot;&amp;WIDTH=&quot; + map.size.w<br>      + &quot;&amp;HEIGHT=&quot; + map.size.h;<br><br>        OpenLayers.loadURL(url,&#39;&#39;,this,receiveGetFeatureInfo,receiveGetFeatureInfo);<br>
  });<br><br>function receiveGetFeatureInfo(response)<br>{<br>   alert(&quot;RESPONSE TEXT: &quot; + response.responseText);<br>}<br><br>responseText is ALWAYS empty... am I doing something wrong?<br><br>Thank you very much,<br>
<br clear="all"><br>-- <br>Signed,<br>Alessandro Ferrucci<br>