[Users] GeoExt.data.WMSCapabilitiesStore browser issue?

Sarah Schuessler sarah_flip at yahoo.de
Mon Jul 19 09:45:03 CEST 2010


Hi,





________________________________



Hi all,
I have a short piece of code to populate a GeoExt.data.WMSCapabilitiesStore and 
display the available layers in a GridPanel, nothing more.
It works as I would expect in Internet Explorer, but the GridPanel does not 
populate in Firefox or Chrome. Is this a known issue, or is there something 
wrong with my code (below).
Many thanks,
Eoin

Ext.onReady(function() {

        
        var grid = new Ext.grid.GridPanel({
                title: "Available WMS Layers",
                region: "north",
                height:  300,
                renderTo: document.body,
                viewConfig: {forceFit: true},
                store: new GeoExt.data.WMSCapabilitiesStore({
                    url: 
"http://139.191.1.174/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities&TILED=true",
 
                    autoLoad: true
                }),
                columns: [{header:  "Name", dataIndex: "name", sortable: 
true},{header: "Title", dataIndex: "title", sortable: true}]
            });
        });

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100719/f2a3c2d7/attachment.htm 


More information about the Users mailing list