Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Possible Duplicate:
Cannot populate a Ext GridPanel through GeoExt WMSCapabilitiesStore

I'm using Mapserver + GeoExt, but i can't not recive any data from this request, any one know how to use that?

var grid = new Ext.grid.GridPanel({
                    title: "Availables WMS Layers",
                    renderTo: document.body, 
                    width: 800,
                    height: 150,
                    viewConfig: {forceFit: true},
                    store: new GeoExt.data.WMSCapabilitiesStore({
                        url: "http://localhost:8085/fcgi-bin/wms.exe?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1",
                        autoLoad: true
                    }),
                    columns: [
                        {header: "Name", dataIndex: "name", sortable: true}
                    ]
                });
share|improve this question

1 Answer 1

Assuming your http://localhost:8085/fcgi-bin/wms.exe?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1 link is working, then this is likely to be a cross-domain issue:

See answer at Cannot populate a Ext GridPanel through GeoExt WMSCapabilitiesStore

share|improve this answer
    
This is a diferent question, because i'm using MapSever, in this example the answer is about GeoServer. –  Michel Andrade Jul 3 '11 at 14:04
1  
It's the same problem. You can't load data from a different URL or port number in a browser. You need a proxy, or run on the same port. –  geographika Jul 3 '11 at 14:55
    
OK! In my example using this address: localhost:8085/fcgi-bin/wms.exe How can i define this proxy? Some thing like that? I do not have a file named "proxy.cgi". OpenLayers.ProxyHost = "/fcgi-bin/proxy.cgi?url="; –  Michel Andrade Jul 3 '11 at 15:00
    
    
I take a look at proxy.cgi configuration, but i'm work with Windows and Apache, so in this way, i'll need to configure and install python!? –  Michel Andrade Jul 3 '11 at 15:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.