<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><font class="Apple-style-span" face="arial" size="2">Hi all, it's my first time writing a post in this list.</font><br><br><font class="Apple-style-span" face="arial" size="2">I'm following the tutorial for GeoExt and I have some problem with the second lesson, "MapPanel Tutorial": I'm not able to show the layer list in the grid.</font><br><br><font class="Apple-style-span" face="arial" size="2">I attach here my html and js code.</font><br><font class="Apple-style-span" face="arial" size="2">If someone could help me to find an error I'll be very glad.</font><br><br><font class="Apple-style-span" face="arial" size="2">Thanks in advance,</font><br><font class="Apple-style-span" face="arial" size="2">Riccardo</font><br><br><font class="Apple-style-span" face="arial" size="2">HTML:</font><br><font class="Apple-style-span" face="arial"
size="2"><html></font><br><font class="Apple-style-span" face="arial" size="2"><head></font><br><font class="Apple-style-span" face="arial" size="2"><title> A Basic GeoExt Page </title></font><br><font class="Apple-style-span" face="arial" size="2"><script src="ext-3.4.0/adapter/ext/ext-base.js" type="text/javascript"></script></font><br><font class="Apple-style-span" face="arial" size="2"><script src="ext-3.4.0/ext-all.js" type="text/javascript"></script></font><br><font class="Apple-style-span" face="arial" size="2"><link rel="stylesheet" type="text/css" href="ext-3.4.0/resources/css/ext-all.css"></link></font><br><font class="Apple-style-span" face="arial" size="2"><script src="http://www.openlayers.org/api/2.10/OpenLayers.js"></script></font><br><font class="Apple-style-span" face="arial" size="2"><script src="GeoExt/lib/GeoExt.js"
type="text/javascript"></script></font><br><font class="Apple-style-span" face="arial" size="2"><link rel="stylesheet" type="text/css" href="GeoExt/resources/css/geoext-all-debug.css"></link></font><br><br><font class="Apple-style-span" face="arial" size="2"><script type="text/javascript" src="geoext_test01.js"></script></font><br> <br><font class="Apple-style-span" face="arial" size="2"></head></font><br><font class="Apple-style-span" face="arial" size="2"><body></font><br><font class="Apple-style-span" face="arial" size="2"><table></font><br><font class="Apple-style-span" face="arial" size="2"><td></font><br><font class="Apple-style-span" face="arial" size="2"><div id="gxmap"></div></font><br><font class="Apple-style-span" face="arial" size="2"></td></font><br><font class="Apple-style-span" face="arial" size="2"><td></font><br><font class="Apple-style-span"
face="arial" size="2"><div id='layerGrid'></div></font><br><font class="Apple-style-span" face="arial" size="2"></td></font><br><font class="Apple-style-span" face="arial" size="2"></table></font><br><br><font class="Apple-style-span" face="arial" size="2"></body></font><br><font class="Apple-style-span" face="arial" size="2"></html></font><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; ">And the JS file "geoext_test01.js":</div><div style="font-family: arial; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;">Ext.onReady(function() {</span></font></div><div><span class="Apple-tab-span" style="white-space: pre; font-size: 14px;"><font class="Apple-style-span" face="arial">        </font></span></div><div><font
class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">        </span>layer_reg = new OpenLayers.Layer.WMS("Regioni", "/cgi-bin/mapserv.exe?",</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                                        </span>{map: "C:/Program Files/OSGeo/MapGuide/Web/www/ric_MS/test_wfs.map", layers:'reg2010_s', isBaseLayer:false, sphericalMercator:true, transparent: true, singleTile: false, transitionEffect: 'resize', visibility: true});</span></font></div><div><span class="Apple-tab-span" style="white-space: pre; font-size: 14px;"><font class="Apple-style-span" face="arial">        </font></span></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"> mapPanel = new
GeoExt.MapPanel({</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                        </span>border: true,</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"> renderTo: 'gxmap',</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                        </span>map: new OpenLayers.Map({allOverlays: false}),</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"> height: 600,</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;">
width: 800,</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                        </span>center: [5, 45],</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                        </span>zoom: 4,</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                        </span>layers: [new OpenLayers.Layer.WMS(</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                                        </span>"Global Imagery",</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span"
style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                                        </span>"http://maps.opengeo.org/geowebcache/service/wms",</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                                        </span>{layers: "bluemarble"},</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                                        </span>{buffer: 0,</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"> visibility: false</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                                
        </span>})</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                                        </span>//{layers: "openstreetmap"</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                                        </span>//,format: "image/png",</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                                        </span>//bgcolor: '#A1BDC4'},</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                                        </span>//{wrapDateLine: true, transitionEffect: 'resize'}</span></font></div><div><font class="Apple-style-span" face="arial"><span
class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                                        </span>,</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                                        </span>//new OpenLayers.Layer.OSM({visibility: false}), //se metto un nome sbiella...</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                                        </span>layer_reg</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                        </span>]</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"> });</span></font></div><div><font
class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><br></span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                </span>new Ext.grid.GridPanel({</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                        </span>title: "Feature Grid",</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                        </span>renderTo: 'layerGrid',</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                        </span>height: 200, width:
200,</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                        </span>autoScroll: true,</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                        </span>store: mapPanel.layers,</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                        </span>columns: [{name: 'name', heading: 'Name'}]</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;"><span class="Apple-tab-span" style="white-space:pre">                </span>});</span></font></div><div><span class="Apple-tab-span" style="white-space: pre; font-size: 14px;"><font class="Apple-style-span"
face="arial">                        </font></span></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;">});</span></font></div></div></td></tr></table>