[Users] GeoExt.data.WMSCapabilitiesStore browser issue?

Sarah Schuessler sarah_flip at yahoo.de
Mon Jul 19 09:47:38 CEST 2010


Hi,

sorry for my previuos post, that was a mistake.

here is my WMSCapabilitiesStore which works fine in IE and FF:
var infostore = new GeoExt.data.WMSCapabilitiesStore({
                       
                url: 
"http://myserver:8080/geoserver/wms?service=wms&request=GetCapabilities&version=1.1.0"

             });
        infostore.load(); 


var grid = new Ext.grid.GridPanel({
                                    title: 'WMS',
                                    region: "south",
                                    id: "grid",
                                    store: infostore,
                                    columns: [
                                        {header: "Name", dataIndex: "name"},
                                        {header: "Abfragbar", dataIndex: 
"queryable"},
                                        {id: "description", header: 
"Beschreibung", dataIndex: "abstract"}
                                        ],
                                    autoExpandColumn: 'description',
                                    height:150,
                                    width: 750,
                                    margins: '0 0 0 550'                        
        

                                    });    

HTH
best regards
Sarah


________________________________
Von: Eoin Mac Aoidh <eoinyp at yahoo.com>
An: users at geoext.org
Gesendet: Freitag, den 16. Juli 2010, 16:15:09 Uhr
Betreff: [Users] GeoExt.data.WMSCapabilitiesStore browser issue?


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/2424b6c2/attachment-0001.htm 


More information about the Users mailing list