<body bgcolor="#ffffff" background="https://img.web.de/v/p.gif" class="bgRepeatYes" style="background-repeat: repeat; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: verdana,geneva; font-size: 9pt; padding-left: 0px;"><div style="min-height: 200px; background-image: url(https://img.web.de/v/p.gif); background-repeat: repeat; background-color: #ffffff; font-family: verdana,geneva; font-size: 9pt; padding-left: 0px;"><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;">Hello everybody,<br /><br />i tried to fetch some featureinfos from geoserver and display in a popup.<br />I used this code:<br /><br /></span></span></span></span></span><i><span style="color: #008000;"> // GetFeatureInfo</span><br /> <br /> var featureInfo = new OpenLayers.Control.WMSGetFeatureInfo({<br /> url: 'http://sfb806srv.uni-koeln.de:8080/geoserver/wms',<br /> layers:[pfeile],<br /> info_format:'text/plain',<br /> });<br /> <br /> featureInfo.events.on({<br /> getfeatureinfo: function(e) {<br /> new GeoExt.Popup({<br /> title: "Feature Info",<br /> width: 200,<br /> height: 150,<br /> autoScroll: true,<br /> maximizable: true,<br /> map: mappanel.map,<br /> lonlat: mappanel.map.getLonLatFromPixel(e.xy),<br /> html: e.text<br /> }).show();<br /> }<br /> });<br /> mappanel.map.addControl(featureInfo);<br /> featureInfo.activate();</i><br /><br />A click on the map results in an empty popup and the following errors in <b>Firebug</b>:<br /><br />
<div role="listitem" class="subLogRow focusRow errorTitle"><span style="color: #ff0000;"><span class="errorMessage">centerPx is null</span></span></div>
<div role="listitem" class="subLogRow focusRow errorSource-show errorSourceBox"><span style="color: #008000;"><img src="chrome://firebug/content/blank.gif" role="checkbox" title="Bei diesem Fehler anhalten" class="a11yFocus errorBreak" /><a title="this.setPosition(centerPx.x + mapBox.x - dx, centerPx.y + mapBox.y - dy);" class="a11yFocus errorSource"> this.setPosition(centerPx.....x - dx, centerPx.y + mapBox.y - dy); <span style="color: #000000;">Popup.js (Line 244)<br /><br />The GET-Request is also shown in red.<br />Params and Header are ok i think. But Response and Html keep empty.<br /><br />I hope anyone can help me.<br /><br />Kind regards Kai<br /></span></a></span></div>
<br /><br /><br /><br /><br /></div> <br><br><table cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#000000"><img src="https://img.web.de/p.gif" width="1" height="1" border="0" alt="" /></td></tr><tr><td style="font-family:verdana; font-size:12px; line-height:17px;">WEB.DE DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt mit <br>gratis Handy-Flat! <a href="http://produkte.web.de/go/DSL_Doppel_Flatrate/2"><b>http://produkte.web.de/go/DSL_Doppel_Flatrate/2</b></a></td></tr></table>
</body>