Pessoal, estou com problemas em visualizar tabelas de feições com o OpenLayers.<br>No console de erros não aparece nada, nem erro algum aparece na página, simplesmente nada acontece.<br><br>O código é este: <br><br><br>&lt;html&gt;<br>
    &lt;head&gt;<br>        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br>        &lt;style type=&quot;text/css&quot;&gt;<br>            table.featureInfo, table.featureInfo td, table.featureInfo th {<br>
                border: 1px solid #ddd;<br>                border-collapse: collapse;<br>                margin: 0;<br>                padding: 0;<br>                font-size: 90%;<br>                padding: .2em .1em;<br>
            }<br>            <br>            table.featureInfo th {<br>                padding: .2em .2em;<br>                text-transform: uppercase;<br>                font-weight: bold;<br>                background: #eee;<br>
            }<br>            <br>            table.featureInfo td {<br>                background: #fff;<br>            }<br>            <br>            table.featureInfo tr.odd td {<br>                background: #eee;<br>
            }<br>            <br>            table.featureInfo caption {<br>                text-align: left;<br>                font-size: 100%;<br>                font-weight: bold;<br>                text-transform: uppercase;<br>
                padding: .2em .2em;<br>            }<br>        &lt;/style&gt;<br>        &lt;script src=&quot;<a href="http://openlayers.org/api/OpenLayers.js">http://openlayers.org/api/OpenLayers.js</a>&quot;&gt;&lt;/script&gt;<br>
        &lt;script type=&quot;text/javascript&quot;&gt;<br>            var pureCoverage = false;<br><br>            function init() <br>            {<br>                var format = &#39;image/png&#39;;   <br>  <br>                var bounds = new OpenLayers.Bounds( -124.73, 24.96, <br>
                                                     -66.97, 49.37 );<br><br>                var options = <br>                {  <br>                    maxExtent: bounds,<br>                    maxResolution: 0.22,<br>                    projection: &quot;EPSG:4326&quot;,<br>
                    units: &#39;degrees&#39;<br>                };<br><br>                map = new OpenLayers.Map(&#39;map&#39;, options);<br>            <br>                var wms = new OpenLayers.Layer.WMS(&quot;State Boundaries&quot;,&quot;<a href="http://localhost:8080/geoserver/wms">http://localhost:8080/geoserver/wms</a>&quot;,<br>
                                                   {<br><br>                        layers: &#39;topp:states&#39;,<br>                        styles: &#39;&#39;,<br>                        srs: &#39;EPSG:4326&#39;,<br>                        format: format<br>
                    },<br>                    {singleTile: true, ratio: 1} <br><br>                                                  );<br>                map.addLayer(wms);<br>                map.zoomToExtent(bounds);<br>
                map.events.register(&#39;click&#39;, map, function (e) <br>                {<br>                    OpenLayers.Util.getElement(&#39;nodelist&#39;).innerHTML = &quot;Loading... please wait...&quot;;<br>                    var url = wms.getFullRequestString(<br>
                    {<br>                        REQUEST: &quot;GetFeatureInfo&quot;,<br>                        EXCEPTIONS: &quot;application/vnd.ogc.se_xml&quot;,<br>                        BBOX: wms.map.getExtent().toBBOX(),<br>
                        X: e.xy.x,<br>                        Y: e.xy.y,<br>                        INFO_FORMAT: &#39;text/plain&#39;,<br>                        QUERY_LAYERS: wms.params.LAYERS,<br>                        FEATURE_COUNT: 50,<br>
                        Layers: &#39;topp:states&#39;,<br>                        Styles: &#39;&#39;,<br>                        Srs: &#39;EPSG:4326&#39;,<br>                        WIDTH: wms.map.size.w,<br>                        HEIGHT: wms.map.size.h,<br>
                    });<br>                    OpenLayers.loadURL(url,&#39;&#39;,this,setHTML);<br>                    OpenLayers.Event.stop(e);<br>                });<br>                function setHTML(response){<br>                    OpenLayers.Util.getElement(&#39;nodelist&#39;).innerHTML = response.responseText;<br>
<br>                };<br>            }<br><br><br><br>            <br><br>        &lt;/script&gt;<br><br>    &lt;/head&gt;<br><br>    &lt;body onload=&quot;init()&quot;&gt;<br>        &lt;div style=&quot;width: 60%; height: 70%; border: 1px solid blue;&quot; id=&quot;map&quot;&gt;&lt;/div&gt;<br>
        &lt;div id=&quot;nodelist&quot;&gt;<br>            &lt;em&gt;Clique no mapa para obter informações das feições&lt;/em&gt;<br>        &lt;/div&gt;<br>    &lt;/body&gt;<br><br>&lt;/html&gt;<br><br><br>Estou usando o Geoserver aqui também. O layer adicionado é um daqueles padrão que vem com o Geoserver. Quando vou em Layer Preview consigo ver as tabelas ao clicar no mapa, mas com o meu código não. Nem mesmo se eu pegar o código fonte gerado pelo Layer Preview e salvar num .htm consigo ver as tabelas. <br>
Fiz alguma idiotice? <br>Desde já obrigado.<br><br>João Paulo<br>