Do you have a proxy installed? http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost
Best regards, Bart > Hello, > > I'm trying to get info from a WMS feature, the code I'm using is next: > > map.events.register('click', map, function (e) { > document.getElementById('nodelist').innerHTML = > "Loading... please wait..."; > var params = { > REQUEST: "GetFeatureInfo", > EXCEPTIONS: "application/vnd.ogc.se_xml", > BBOX: map.getExtent().toBBOX(), > SERVICE: "WMS", > VERSION: "1.1.0", > X: e.xy.x, > Y: e.xy.y, > INFO_FORMAT: 'text/html', > QUERY_LAYERS: 'varetas_2010', > FEATURE_COUNT: 50, > Layers: 'varetas_2010', > Styles: '', > WIDTH: map.size.w, > HEIGHT: map.size.h, > format: format}; > OpenLayers.loadURL(" > http://getcloud.info:8080/geoserver/wms", params, this, setHTML, setHTML); > OpenLayers.Event.stop(e); > }); > } > > // sets the HTML provided into the nodelist element > function setHTML(response){ > alert( response.responseText ); > document.getElementById('nodelist').innerHTML = > response.responseText; > }; > > And the URL query that server receive from OpenLayers is this one: > > http://getcloud.info:8080/geoserver/wms?REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=-4.019431%2C37.722122%2C-3.998481%2C37.732959&SERVICE=WMS&VERSION=1.1.0&X=388&Y=124&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=varetas_2010&FEATURE_COUNT=50&Layers=varetas_2010&Styles=&WIDTH=638&HEIGHT=330&format=image%2Fpng > > My big problem is that I don't know what's happening because the query is > allright (if you put into a browser you can see the response) but the > response into the OpenLayers is null (the alert don't show any info to > me). > What could be happening here? Big thanks. > > Regards, > _______________________________________________ > Users mailing list > us...@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users