Hi,

i have a problem with WMSGetFeatureInfo. I want to show the response from the geoserver in a popup-window.
CODE:

    var featureInfo = new OpenLayers.Control.WMSGetFeatureInfo({
        url: 'http://sfb806srv.uni-koeln.de:8080/geoserver/wms',
        title: 'Info:',
        maxFeatures: 1,
        queryVisible: true,
        eventListeners: {
            getfeatureinfo: function(event){
                //if( event.text != "\n" && event.text != "") {
                     new GeoExt.Popup({         //utilizing the GeoExt popup functionality
                     title: "Info",
                     autoScroll: true,
                     map: map,
                     maximizable: false,
                     collapsible: false,
                     unpinnable: false,
                     anchored: false,
                     location: map.getLonLatFromPixel(event.xy),
                     html: event.text
                     }).show();
                //}
            }
        }
    });
    map.addControl(featureInfo);
    featureInfo.activate();


A Popopup shows up, but its empty:
 

Firebug:
Params:
-5023788.344356,1424785.721383,10806625.958781,9975948.94817
1
image/png
437
text/html
SFB806DB:Pfeile
SFB806DB:Pfeile
GetFeatureInfo
WMS
EPSG:900913

1.1.1
809
278
224
Header:
Antwort-Header
Apache-Coyote/1.1
gzip
text/html;charset=UTF-8
391
Tue, 01 Feb 2011 13:29:00 GMT
Anfrage-Header
sfb806srv.uni-koeln.de:8080
Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
gzip,deflate
ISO-8859-1,utf-8;q=0.7,*;q=0.7
115
keep-alive
http://localhost/webgis/webgis.html
http://localhost

Response and HTML are empty.

Some hints refered me to things like proxy.cgi and stuff. But all this didn't helped me.

Why do the popup remains empty and how to fix it? Is it because i'm runnig it local?

Kind regards

Kai

 

_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to