Steve, _test is a javascript variable:<br> <br>    var _test =  new OpenLayers.Layer.WMS("MyLayer",<br>                _mapfilex, {                  <br>                    layers: [ 'Test1,Test2'],<br>                    format: "image/png",<br>
                    transparent: "true"<br>                }, {<br>                    isBaseLayer: false,<br>                    buffer: 0,<br>                    visibility: true<br>                });<br><br>
Stella<br><br><div class="gmail_quote">2010/1/27  <span dir="ltr"><<a href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br><font face="sans-serif" size="2">Stela,</font>
<br><font face="sans-serif" size="2">In that example you are querying layers
Test1 and Test2.</font>
<br><font face="sans-serif" size="2">Below you defined your control with
laye</font><font size="3">r _test</font>
<br><font size="3">It is confusing...</font>
<br><font size="3">You should try with a simpler example. I suggest you create
a mapfile with one layer (don't forget the tolerance and template), create
the wms layer in Openlayer and define the control on this layer only.</font>
<br><font size="3">Steve</font>
<br>
<br><font face="sans-serif" size="2"><br>
</font><font color="#0066ff" size="3"><i>Steve Toutant, M. Sc.</i></font><font size="3"><br>
Analyste en géomatique<br>
Secteur environnement<br>
Direction de la santé environnementale et de la toxicologie<br>
Institut national de santé publique du Québec<br>
945, avenue Wolfe<br>
Québec, Qc G1V 5B3 </font>
<p><font size="3">Tél.: (418) 650-5115 #5281<br>
Fax.: (418) 654-3144</font><font color="blue" size="3"><u><br>
</u></font><a href="mailto:steve.toutant@inspq.qc.ca" target="_blank"><font color="blue" size="3"><u>steve.toutant@inspq.qc.ca</u></font></a><font color="blue" size="3"><u><br>
</u></font><a href="http://www.inspq.qc.ca/" target="_blank"><font color="blue" size="3"><u>http://www.inspq.qc.ca</u></font></a>
</p><p><font size="3">  </font>
</p><p>
<br>
<br>
<br>
</p><table width="100%">
<tbody><tr valign="top">
<td width="40%"><font face="sans-serif" size="1"><b>stela anders <<a href="mailto:stelaanders@gmail.com" target="_blank">stelaanders@gmail.com</a>>@<a href="http://lists.osgeo.org" target="_blank">lists.osgeo.org</a></b>
</font>
<br><font face="sans-serif" size="1">Envoyé par : <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a></font>
<p><font face="sans-serif" size="1">27/01/2010 08:35 AM</font>
</p></td><td width="59%">
<table width="100%">
<tbody><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">A</font></div>
</td><td><div class="im"><font face="sans-serif" size="1">"Fawcett, David (MPCA)" <<a href="mailto:David.Fawcett@state.mn.us" target="_blank">David.Fawcett@state.mn.us</a>></font>
</div></td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">cc</font></div>
</td><td><font face="sans-serif" size="1">MapserverList OSGEO <<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">Objet</font></div>
</td><td><font face="sans-serif" size="1">Re: [mapserver-users] Re: WMSGetFeatureInfo
problem (No results,         using OL)</font></td></tr></tbody></table>
<br>
<table>
<tbody><tr valign="top">
<td>
</td><td></td></tr></tbody></table>
<br></td></tr></tbody></table><div><div></div><div class="h5">
<br>
<br>
<br>
<br>
<br><font size="3">Hi David!<br>
<br>
The url is :<br>
</font><font color="blue" size="3"><u><br>
</u></font><a href="http://localhost/cgi-bin/mapserv.exe?map=map.map&&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=Test1,Test2&QUERY_LAYERS=Test1,Test2&STYLES=,&BBOX=-65.806807%2C-16.885911%2C-38.978193%2C-11.238939&FEATURE_COUNT=10&HEIGHT=257&WIDTH=1221&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A4326&X=366&Y=217" target="_blank"><font color="blue" size="3"><u>http://localhost/cgi-bin/mapserv.exe?map=map.map&&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=Test1,Test2&QUERY_LAYERS=Test1,Test2&STYLES=,&BBOX=-65.806807%2C-16.885911%2C-38.978193%2C-11.238939&FEATURE_COUNT=10&HEIGHT=257&WIDTH=1221&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A4326&X=366&Y=217</u></font></a><font size="3"><br>

<br>
Executing that URL direct in browser generate that:<br>
<br>
Content-type: application/vnd.ogc.se_xml <br>
<br>
Thanks<br>
<br>
Stella<br>
</font>
<br><font size="3">2010/1/26 Fawcett, David (MPCA) <</font><a href="mailto:David.Fawcett@state.mn.us" target="_blank"><font color="blue" size="3"><u>David.Fawcett@state.mn.us</u></font></a><font size="3">></font>
<br><font color="#1f497d" size="2">Stella, </font>
</div></div><p><font color="#1f497d" size="2"> </font>
</p><p></p><div><div></div><div class="h5"><font color="#1f497d" size="2">What does the getFeatureInfo call look like? 
</font>
</div></div><p><font color="#1f497d" size="2"> </font>
</p><p></p><div><div></div><div class="h5"><font color="#1f497d" size="2">Use Firebug to find the URL used to make
the request and post it here.’</font>
</div></div><p><font color="#1f497d" size="2"> </font>
</p><p><font color="#1f497d" size="2">David.</font>
</p><p><font color="#1f497d" size="2"> </font>
</p><p></p><div><div></div><div class="h5"><font size="2"><b>From:</b> </font><a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank"><font color="blue" size="2"><u>mapserver-users-bounces@lists.osgeo.org</u></font></a><font size="2">
[mailto:</font><a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank"><font color="blue" size="2"><u>mapserver-users-bounces@lists.osgeo.org</u></font></a><font size="2">]
<b>On Behalf Of </b>stela anders<b><br>
Sent:</b> Tuesday, January 26, 2010 1:33 PM<b><br>
To:</b> MapserverList OSGEO<b><br>
Subject:</b> [mapserver-users] Re: WMSGetFeatureInfo problem (No results,
using OL)</font>
</div></div><p><font size="3"> </font>
</p><p></p><div><div></div><div class="h5"><font size="3">Any idea whats happening?<br>
I lost all day trying to fix that, but got nothing :(<br>
<br>
Stella<br>
</font>
</div></div><p></p><div><div></div><div class="h5"><font size="3">2010/1/25 stela anders <</font><a href="mailto:stelaanders@gmail.com" target="_blank"><font color="blue" size="3"><u>stelaanders@gmail.com</u></font></a><font size="3">></font>
</div></div><p></p><div><div></div><div class="h5"><font size="3">Hello guys...<br>
<br>
My mapfile:<br>
<br>
...<br>
  PROJECTION<br>
        "+init=epsg:4326"<br>
    END<br>
<br>
    WEB<br>
        IMAGEPATH 'C:\temp\'<br>
        IMAGEURL '/tmp/'<br>
        QUERYFORMAT text/html   
  <br>
        <br>
        METADATA<br>
            "wms_title"    
"WMS Server" <br>
            "wms_onlineresource"
"</font><a href="http://localhost/cgi-bin/mapserv.exe" target="_blank"><font color="blue" size="3"><u>http://localhost/cgi-bin/mapserv.exe</u></font></a><font size="3">?" 
<br>
            "wms_srs"      
"EPSG:4326 EPSG:42304 EPSG:42101 EPSG:4269" <br>
            'wms_feature_info_mime_type'
"text/html" <br>
        END<br>
    END<br>
<br>
   QUERYMAP<br>
        COLOR 255 0 0<br>
        SIZE -1 -1<br>
        STATUS OFF<br>
        STYLE hilite<br>
    END<br>
...<br>
<br>
LAYER<br>
...<br>
       METADATA<br>
            "wms_title"   
"Test"   ##required<br>
             "wms_include_items"
"all"<br>
             "wms_feature_info_mime_type"
"text/html"            
 <br>
        END      
<br>
        TYPE POINT<br>
        STATUS ON<br>
        INCLUDE "Connection.map"
<br>
        DATA "the_geom from viwtest
USING UNIQUE oid USING SRID=0"<br>
        PROJECTION<br>
            "+init=epsg:4326"<br>
        END<br>
        <br>
        TOLERANCE 5<br>
         HEADER   "header.html"
<br>
        TEMPLATE "template.html"    
<br>
         FOOTER   "footer.html"
<br>
...<br>
<br>
Templates:<br>
Header.html<br>
<!-- MapServer Template --><br>
<html> <br>
  <head> <br>
    <title>MapServer Template Sample</title>
<br>
  </head> <br>
<br>
Template.html<br>
<!-- MapServer Template --><br>
<body> <br>
    <b>OID:</b> [oid]<br>
  </body> <br>
<br>
Footer.html<br>
</html><br>
<br>
WMSGetFeatureInfo  Javascript (OpenLayer)<br>
<br>
var infoCtl = new OpenLayers.Control.WMSGetFeatureInfo({ <br>
                   
layers: [_test], <br>
                   
title: 'Click on the map to get information on layers', <br>
                   
queryVisible: true, <br>
                   
infoFormat: 'text/html' <br>
               
}); <br>
             
<br>
               
infoCtl.events.register("getfeatureinfo",map,showInfo); <br>
<br>
 function showInfo(evt) {    <br>
            alert(evt.text);<br>
} <br>
<br>
<br>
I´m getting that :<br>
<br>
<html> <br>
  <head> <br>
    <title>MapServer Template Sample</title>
<br>
  </head> Content-type: application/vnd.ogc.se_xml<br>
<br>
<?xml version='1.0' encoding="ISO-8859-1" standalone="no"
?><br>
<!DOCTYPE ServiceExceptionReport SYSTEM "</font><a href="http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd" target="_blank"><font color="blue" size="3"><u>http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd</u></font></a><font size="3">"><br>

<ServiceExceptionReport version="1.1.1"><br>
<ServiceException><br>
</ServiceException><br>
</ServiceExceptionReport><br>
<br>
<br>
Any idea whats happening?<br>
<br>
Stella<br>
</font>
</div></div><p><font size="3"> </font>
</p><p><tt><font size="2">_______________________________________________<div class="im"><br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></font></tt>
<br>
<br>
<br></p></blockquote></div><br>