<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi All<br><br>I created a map by using a map file in OpenLayers and I am trying to query some features but I couldn't make it. Also, do I have to set something in map file to query a feature in Openlayers? I am using these codes but no result. Can someone help me what is my mistake? Codes are below;<br> Thanks<br><br><br><br> map.events.register('click', map, function (e) {<br> OpenLayers.Util.getElement('nodeList').innerHTML = "Loading... please wait...";<br> var url = wms.getFullRequestString({<br> REQUEST: "GetFeatureInfo",<br> EXCEPTIONS: "application/vnd.ogc.se_xml",<br> BBOX: wms.map.getExtent().toBBOX(),<br> X: e.xy.x,<br> Y: e.xy.y,<br> INFO_FORMAT: 'text/html',<br> QUERY_LAYERS: wms.params.LAYERS,<br> WIDTH: wms.map.size.w,<br> HEIGHT: wms.map.size.h});<br> OpenLayers.loadURL(url, '', this, setHTML);<br> OpenLayers.Event.stop(e);<br> });<br> <br> function setHTML(response) {<br> OpenLayers.Util.getElement('nodeList').innerHTML = response.responseText;<br> }<br> </div></body>
</html>