<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">&lt;html&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;head&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;title&gt; A Basic GeoExt Page &lt;/title&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;script src="ext-3.4.0/adapter/ext/ext-base.js" type="text/javascript"&gt;&lt;/script&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;script src="ext-3.4.0/ext-all.js"  type="text/javascript"&gt;&lt;/script&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;link rel="stylesheet" type="text/css" href="ext-3.4.0/resources/css/ext-all.css"&gt;&lt;/link&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;script src="http://www.openlayers.org/api/2.10/OpenLayers.js"&gt;&lt;/script&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;script src="GeoExt/lib/GeoExt.js"
 type="text/javascript"&gt;&lt;/script&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;link rel="stylesheet" type="text/css" href="GeoExt/resources/css/geoext-all-debug.css"&gt;&lt;/link&gt;</font><br><br><font class="Apple-style-span" face="arial" size="2">&lt;script type="text/javascript" src="geoext_test01.js"&gt;&lt;/script&gt;</font><br>    <br><font class="Apple-style-span" face="arial" size="2">&lt;/head&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;body&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;table&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;td&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;div id="gxmap"&gt;&lt;/div&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;/td&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;td&gt;</font><br><font class="Apple-style-span"
 face="arial" size="2">&lt;div id='layerGrid'&gt;&lt;/div&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;/td&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;/table&gt;</font><br><br><font class="Apple-style-span" face="arial" size="2">&lt;/body&gt;</font><br><font class="Apple-style-span" face="arial" size="2">&lt;/html&gt;</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&nbsp;"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;">&nbsp; &nbsp; &nbsp; &nbsp; 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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height: 600,</span></font></div><div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: 14px;">&nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; 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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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;">&nbsp; &nbsp; &nbsp; &nbsp; });</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>