Thanks for these clarifications.<br>So this means that the only way to access WMS servers on other domains is to create a server proxy ? Or do you see a way to do that only with GeoExt ?<br>Thanks.<br>Cédric<br><br><br><div class="gmail_quote">
On Wed, Oct 21, 2009 at 9:26 PM, Eric Lemoine <span dir="ltr"><<a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/10/21 Andreas Hocevar <<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>>:<br>
<div class="im">> Cédric Moullet wrote:<br>
>> Hi,<br>
>> In GeoExt.data.WFSCapabilitiesStore, the Ext.data.HttpProxy is used.<br>
>> Is there any reason why Ext.data.ScriptTagProxy is not used ?<br>
><br>
> Yes, there is. XML in a script tag would get you nothing but a script<br>
> execution error.<br>
><br>
>> This would avoid the cross domain problem.<br>
><br>
> But only if the response from the server was executable JavaScript.<br>
<br>
</div>yes. Cédric was mentioning geonames to me. In the case of geonames you<br>
can provide a "callback" parameter in the request (e.g.<br>
&callback=myhandler), in that case the response from geonames looks<br>
like this : "myhandler({"totalResultsCount":23,"geonames":[{"fcl":"P",<br>
....]});". So if you use a ScriptProxy that response is evaluated by<br>
the javascript engine, and myhandler gets executed.<br>
<br>
Hope this clarifies it,<br>
<br>
--<br>
Eric Lemoine<br>
<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex<br>
<br>
Tel : 00 33 4 79 44 44 96<br>
Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>CTO Geospatial Camptocamp SA<br>Cédric Moullet<br>PSE A<br>CH-1015 Lausanne<br><a href="http://www.camptocamp.com">www.camptocamp.com</a> / <a href="http://www.mapfish.org">www.mapfish.org</a> / <a href="http://twitter.com/cedricmoullet">twitter.com/cedricmoullet</a> / <a href="http://mapfishblog.blogspot.com/">mapfishblog.blogspot.com/</a><br>
<br>+41 79 759 69 83 (mobile)<br>+41 21 619 10 21 (direct)<br>+41 21 619 10 10 (centrale)<br>+41 21 619 10 00 (fax)<br>