<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div style="color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Hi Ivan,</div><div style="color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">This thing is making me mad. I have spent more than two days on this things still its not working. My display projection is mercator but my WMS layer from where i want to get info is in espg:4326.&nbsp;</div><div style="color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I am trying this in two ways:</div><div
 style="color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="3">1)&nbsp;</font><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp;</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">        </span>info = new OpenLayers.Control.WMSGetFeatureInfo({</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; url: '<a target="_blank" href="http://geoweb.hft-stuttgart.de:80/geoserver/wms">http://geoweb.hft-stuttgart.de:80/geoserver/wms</a>',&nbsp;</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; title:
 'Identify features by clicking',</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; layers: [wmslayer],</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //hover:true,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; queryVisible: true,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eventListeners: {</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getfeatureinfo: function(event) {</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map.addPopup(new OpenLayers.Popup.FramedCloud(</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "chicken",&nbsp;</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map.getLonLatFromPixel(event.xy),</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; null,</font></div><div><font
 class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; event.text,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; null,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; true</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ));</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(event.text);</font></div><div><font class="Apple-style-span"
 face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp;&nbsp;</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; });</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; map.addControl(info);</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp;
 info.activate();</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">There are point feautures in my WMS. WMS is congfigured in ESPG:4326 in my geoserver. When i click to a point, the point information is passed in&nbsp;projectionMercator or projection4326 ? I think this is where the problem lies ! To work correctly the point information should be passed in ESPG: 4326 but i dont see a parameter in&nbsp;</font><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; ">OpenLayers.Control.WMSGetFeatureInfo where i can set this . I always get blank reponse !</span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new
 york', times, serif; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; ">2) Geoserver way.</span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; "><br></span></div><div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp;map.events.register('click', map, function (e) {</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //document.getElementById('nodelist').innerHTML = "Loading... please wait...";</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var params = {</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times,
 serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; REQUEST: "GetFeatureInfo",</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXCEPTIONS: "application/vnd.ogc.se_xml",</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BBOX: map.getExtent().transform(map.getProjectionObject(),projection4326).toBBOX(),</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; X: e.xy.x,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; Y: e.xy.y,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; INFO_FORMAT: 'text/html',</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QUERY_LAYERS: 'test_postgis:addressv2b',</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FEATURE_COUNT: 50,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Layers: 'test_postgis:addressv2b',</font></div><div><font class="Apple-style-span" face="'times new roman', 'new
 york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Styles: '',</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WIDTH: map.size.w,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEIGHT: map.size.h,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; format: 'image/jpeg'};</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OpenLayers.loadURL("<a target="_blank"
 href="http://geoweb.hft-stuttgart.de:80/geoserver/wms">http://geoweb.hft-stuttgart.de:80/geoserver/wms</a>", params, this, setHTML, setHTML);</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //OpenLayers.Event.stop(e);</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // sets the HTML provided
 into the nodelist element</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function setHTML(response){</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span> map.addPopup(new OpenLayers.Popup.FramedCloud(</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "chicken",&nbsp;</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;map.getLonLatFromPixel(event.xy), &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; null,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;response.responseText,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; null,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp;true</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;));</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span"
 style="white-space:pre">        </span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //document.getElementById('nodelist').innerHTML = response.responseText;</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };</font></div><div><span class="Apple-tab-span" style="white-space: pre; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">                </font></span></div></div><div><span class="Apple-tab-span" style="white-space: pre; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></span></div><div><span class="Apple-tab-span" style="white-space: pre; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></span></div><div><span class="Apple-tab-span"
 style="white-space: pre; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">But this ones says, "event is not defined ".</font></span></div><div><span class="Apple-tab-span" style="white-space: pre; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></span></div><div><span class="Apple-tab-span" style="white-space: pre; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">Please help me with this </font></span></div><div><span class="Apple-tab-span" style="white-space: pre; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></span></div><div><span class="Apple-tab-span" style="white-space: pre; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">sukuchha</font></span></div><div style="color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;
 "><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">Von:</span></b> Ivan Grcic &lt;ivan.grcic@geo-solutions.it&gt;<br><b><span style="font-weight: bold;">An:</span></b> Sukuchha Shrestha &lt;sukuchha@yahoo.de&gt;; geoserver-users &lt;geoserver-users@lists.sourceforge.net&gt;<br><b><span style="font-weight: bold;">Gesendet:</span></b> Freitag, den 6. Mai 2011, 19:12:50 Uhr<br><b><span style="font-weight: bold;">Betreff:</span></b> Re: [OpenLayers-Users] Get Feature Info in pop up from geoserver<br></font><br>Hi,<br><br>it seems that for some reason you are not getting any features back<br>from you geoserver. (are you sure there are some features at requested<br>point?)<br><br>This can also happen due to several things, but most likely your layer<br>is not configured with correct spatial reference system, so geoserver<br>doesnt return any feature at
 requested point.<br><br>Cheers,<br>Ivan<br><br>On Fri, May 6, 2011 at 5:59 PM, Sukuchha Shrestha &lt;<a ymailto="mailto:sukuchha@yahoo.de" href="mailto:sukuchha@yahoo.de">sukuchha@yahoo.de</a>&gt; wrote:<br>&gt; Hello ivan,<br>&gt; Thank you very much for pointing me towards the righ path. I tried to apply<br>&gt; as shown in that html but but i ran into the problem again.<br>&gt; Somehow my pop is not returning the get feature info but empty. I tried to<br>&gt; see with firebug and i found that the geoserver is actually returning<br>&gt; something.<br>&gt; &lt;html&gt;<br>&gt; &nbsp; &lt;head&gt;<br>&gt; &nbsp; &nbsp; &lt;title&gt;Geoserver GetFeatureInfo output&lt;/title&gt;<br>&gt; &nbsp; &lt;/head&gt;<br>&gt; &nbsp; &lt;style type="text/css"&gt;<br>&gt; table.featureInfo, table.featureInfo td, table.featureInfo th {<br>&gt; border:1px solid #ddd;<br>&gt; border-collapse:collapse;<br>&gt; margin:0;<br>&gt; padding:0;<br>&gt; font-size: 90%;<br>&gt;
 padding:.2em .1em;<br>&gt; }<br>&gt; table.featureInfo th {<br>&gt; &nbsp; &nbsp;padding:.2em .2em;<br>&gt; font-weight:bold;<br>&gt; background:#eee;<br>&gt; }<br>&gt; table.featureInfo td{<br>&gt; background:#fff;<br>&gt; }<br>&gt; table.featureInfo tr.odd td{<br>&gt; background:#eee;<br>&gt; }<br>&gt; table.featureInfo caption{<br>&gt; text-align:left;<br>&gt; font-size:100%;<br>&gt; font-weight:bold;<br>&gt; text-transform:uppercase;<br>&gt; padding:.2em .2em;<br>&gt; }<br>&gt; &nbsp; &lt;/style&gt;<br>&gt; &nbsp; &lt;body&gt;<br>&gt;<br>&gt; &nbsp; &lt;/body&gt;<br>&gt; &lt;/html&gt;<br>&gt; I guess this is&nbsp;header template&nbsp; that is there is geoserver. Ideally it<br>&gt; should come with content templete as well.<br>&gt; Any idea what is the problem here.<br>&gt; Thanks<br>&gt; Sukuchha<br>&gt; ________________________________<br>&gt; Von: Ivan Grcic &lt;<a ymailto="mailto:ivan.grcic@geo-solutions.it"
 href="mailto:ivan.grcic@geo-solutions.it">ivan.grcic@geo-solutions.it</a>&gt;<br>&gt; An: Sukuchha Shrestha &lt;<a ymailto="mailto:sukuchha@yahoo.de" href="mailto:sukuchha@yahoo.de">sukuchha@yahoo.de</a>&gt;<br>&gt; CC: <a ymailto="mailto:users@openlayers.org" href="mailto:users@openlayers.org">users@openlayers.org</a><br>&gt; Gesendet: Freitag, den 6. Mai 2011, 11:02:29 Uhr<br>&gt; Betreff: Re: [OpenLayers-Users] Get Feature Info in pop up from geoserver<br>&gt;<br>&gt; Hi Sukuchha,<br>&gt;<br>&gt; You should use openlayers popup feature.<br>&gt;<br>&gt; This example is perfect for you :<br>&gt; <a href="http://openlayers.org/dev/examples/getfeatureinfo-popup.html" target="_blank">http://openlayers.org/dev/examples/getfeatureinfo-popup.html</a><br>&gt;<br>&gt; Regards,<br>&gt; Ivan<br>&gt;<br>&gt; On Fri, May 6, 2011 at 10:49 AM, Sukuchha Shrestha &lt;<a ymailto="mailto:sukuchha@yahoo.de"
 href="mailto:sukuchha@yahoo.de">sukuchha@yahoo.de</a>&gt;<br>&gt; wrote:<br>&gt;&gt; Hello nice people,<br>&gt;&gt; i am trying to display get feature info of WMS layers coming from my<br>&gt;&gt; geoserver. I do not have much experience with open layers and geoserver as<br>&gt;&gt; well.<br>&gt;&gt; This is what geoserver preview layers give to me:<br>&gt;&gt; // support GetFeatureInfo<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map.events.register('click', map, function (e) {<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('nodelist').innerHTML =<br>&gt;&gt; "Loading... please wait...";<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var params = {<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; REQUEST: "GetFeatureInfo",<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; EXCEPTIONS: "application/vnd.ogc.se_xml",<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BBOX: map.getExtent().toBBOX(),<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; X: e.xy.x,<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Y: e.xy.y,<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; INFO_FORMAT: 'text/html',<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QUERY_LAYERS: map.layers[0].params.LAYERS,<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FEATURE_COUNT: 50,<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Layers: 'sf:bugsites',<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Styles: '',<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WIDTH: map.size.w,<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEIGHT: map.size.h,<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; format: format};<br>&gt;&gt;<br>&gt;&gt; OpenLayers.loadURL("<a href="http://localhost:8080/geoserver/wms" target="_blank">http://localhost:8080/geoserver/wms</a>", params, this,<br>&gt;&gt; setHTML, setHTML);<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OpenLayers.Event.stop(e);<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&gt;&gt; &nbsp;function setHTML(response){<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 document.getElementById('nodelist').innerHTML =<br>&gt;&gt; response.responseText;<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt;&gt;<br>&gt;&gt; But in my case, I want to display the getfeatureinfo not in a external div<br>&gt;&gt; but on a openlayers right beside the where user have clicked. If, any one<br>&gt;&gt; could provide me a working code to do this and explain in a coincise<br>&gt;&gt; manner<br>&gt;&gt; ??<br>&gt;&gt; Sorry if this is too basic stuff for some people ! I am in class 1 of<br>&gt;&gt; openlayers and geoserver :))<br>&gt;&gt; Sukuchha<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Users mailing list<br>&gt;&gt; <a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users"
 target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; -------------------------------------------------------<br>&gt; Ivan Grcic<br>&gt; GeoSolutions S.A.S.<br>&gt; Software Engineer<br>&gt;<br>&gt;<br>&gt; Via Poggio alle Viti 1187<br>&gt; 55054 &nbsp;Massarosa (LU)<br>&gt; Italy<br>&gt;<br>&gt; phone: +39 0584 962313<br>&gt; fax: &nbsp; &nbsp; &nbsp;+39 0584 962313<br>&gt;<br>&gt; <a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a><br>&gt; <a href="http://geo-solutions.blogspot.com/" target="_blank">http://geo-solutions.blogspot.com/</a><br>&gt; <a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a><br>&gt; <a href="http://www.youtube.com/user/GeoSolutionsIT" target="_blank">http://www.youtube.com/user/GeoSolutionsIT</a><br>&gt;<br>&gt;
 -------------------------------------------------------<br>&gt;<br><br><br><br>-- <br>-------------------------------------------------------<br>Ivan Grcic<br>GeoSolutions S.A.S.<br>Software Engineer<br><br><br>Via Poggio alle Viti 1187<br>55054 &nbsp;Massarosa (LU)<br>Italy<br><br>phone: +39 0584 962313<br>fax: &nbsp; &nbsp; &nbsp;+39 0584 962313<br><br><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a><br><a href="http://geo-solutions.blogspot.com/" target="_blank">http://geo-solutions.blogspot.com/</a><br><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a><br><a href="http://www.youtube.com/user/GeoSolutionsIT" target="_blank">http://www.youtube.com/user/GeoSolutionsIT</a><br><br>-------------------------------------------------------<br></div></div><div style="color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; position: fixed;
 "></div>


</div></body></html>