<html><head><style id="axi-htmleditor-style" type="text/css">p { margin: 0px; }</style></head><body style="font-size: 10pt; font-family: Arial; background-image: none; background-repeat: repeat; background-attachment: fixed;">Thanks a lot,<br>i've moved the client-code into the geoserver-webapp-dir and now i'm happy becouse it works :)<br>now i don't need the apache. thats quiet nice too :D<br><br>On Mon, 28 Dec 2009 05:11 PM, "Matt Priour" <mpriour@kestrelcomputer.com> wrote:<br><blockquote style="border-left: 2px solid rgb(0, 0, 204); padding-left: 4px; margin-left: 16px;"><div style="font-family: monospace; font-size: 10pt;">My best guess is that you are experiencing the cross-site scripting <br>restriction (ie same-origin policy). The browser isn't smart enough to <br>figure out that 2 domains that resovle to the same IP address are the same. <br>For example:<br><a href="http://mycomputername" target="_blank">http://mycomputername</a>:8080, <a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>:8080, <a href="http://localhost" target="_blank">http://localhost</a>:8080 are <br>all the same to you & I but to your browser those are different domains and <br>scripts from one domain can't directly read XML output from another domain.<br>Also <a href="http://localhost" target="_blank">http://localhost</a>:9090 & <a href="http://localhost" target="_blank">http://localhost</a>:8080 are not considered the <br>same domain as they differ in port number, so the restriction would hit you <br>there too.<br><br>see <a href="http://en.wikipedia.org/wiki/Same_origin_policy" target="_blank">http://en.wikipedia.org/wiki/Same_origin_policy</a> for more info<br><br>OpenLayers ships with a scripting python based scripting proxy which you can <br>use. If you need another language, I think Mapfish has similar proxies in <br>Java & Ruby. You can also find numerous examples for other languages on the <br>internet.<br><br>Eventually you will need one of these script proxies so you should <br>familiarize yourself with them and begin using it.<br><br>Matt Priour<br>Kestrel Computer Consulting<br><br>--------------------------------------------------<br>From: "Kai Culemann" <<a href="mailto:kai.culemann@bluecall.de" target="_blank">kai.culemann@bluecall.de</a>><br>Sent: Monday, December 28, 2009 10:40 AM<br>To: <<a href="mailto:users@geoext.org" target="_blank">users@geoext.org</a>><br>Subject: [Users] WMSCapabilitiesStore won't load capabilities from server<br><br>> Hi,<br>> i've a problem using GeoExt.data.WMSCapabilitiesStore with a wms <br>> (GeoServer).<br>><br>> When i try to request the capabilities-document from the server firebug <br>> tells me<br>> "Failed to load source for: <br>> <a href="http://localhost" target="_blank">http://localhost</a>:8080/geoserver/ows?service=wms&version=1.1.1&request=GetCapabilities"<br>><br>> When i put the request in the browser-url, i get an <br>> "application/vnd.ogc.wms_xml"-document, which seems right.<br>> When i save this document to disc and use it with the <br>> WMSCapabilitiesStore, it works fine.<br>><br>> How can i get the capabilities from my geoserver to my application without <br>> saving the capabilities-document to disk?<br>><br>> the source:<br>> Ext.onReady(function() {<br>> store = new GeoExt.data.WMSCapabilitiesStore({<br>> url: <br>> "<a href="http://localhost" target="_blank">http://localhost</a>:8080/geoserver/ows?service=wms&version=1.1.1&request=GetCapabilities",<br>> });<br>> store.load();<br>> [...some other code...]<br>> });<br>> _______________________________________________<br>> Users mailing list<br>><a href="mailto:%20Users@geoext.org" target="_blank"> Users@geoext.org</a><br>> <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a> <br><br><br></div></blockquote></body></html>