Hello,
When the html file store on localhost,
Why the LoadURL can't get response?
var params = {
REQUEST: "GetFeatureInfo",
EXCEPTIONS: "application/vnd.ogc.se_xml",
BBOX: map.getExtent().toBBOX(),
X: e.xy.x,
Y: e.xy.y,
INFO_FORMAT: 'text/html',
QUERY_LAYERS: map.layers[0].params.LAYERS,
FEATURE_COUNT: 50,
Layers: 'CHN',
Styles: '',
Srs: 'EPSG:4326',
WIDTH: map.size.w,
HEIGHT: map.size.h,
format: format};
updateFeatureInfoFilters(params);
OpenLayers.loadURL("http://159.226.13.203:8080/geoserver/wms", params, this,
setHTML, setHTMLx);
OpenLayers.Event.stop(e);
});
}
// sets the HTML provided into the nodelist element
function setHTML(response){
document.getElementById('nodelist').innerHTML =
response.responseText;
};
Thank you!
I'm very depressed.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users