<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
This is due to the same origin policy in browsers that means you
can't access data from a URL on a different server. <br>
You can set up a proxy, or you can use a technique described here -
<a
href="http://geographika.co.uk/accessing-cross-domain-data-with-yql">http://geographika.co.uk/accessing-cross-domain-data-with-yql</a><br>
Regards,<br>
<br>
Seth<br>
<br>
<font color="#888888">--<br>
web:</font><a href="http://geographika.co.uk"><font
color="#888888"> </font>http://geographika.co.uk</a><br>
<font color="#888888">twitter: @geographika<br>
</font><br>
<br>
On 01/04/2011 13:47, Sukuchha Shrestha wrote:
<blockquote cite="mid:395149.6026.qm@web29119.mail.ird.yahoo.com"
type="cite">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<div style="font-family: 'times new roman','new york',times,serif;
font-size: 12pt;">
<div><span class="Apple-style-span" style="border-collapse:
collapse; font-family: arial,sans-serif; font-size: 13px;">Dear
all,</span></div>
<div><span class="Apple-style-span" style="border-collapse:
collapse; font-family: arial,sans-serif; font-size: 13px;"><br>
</span></div>
<div><span class="Apple-style-span" style="border-collapse:
collapse; font-family: arial,sans-serif; font-size: 13px;"> I
want your help in solving this issue of populating WMS
capabilities in a Tree in GeoEXT. I want to populate a WMS
layers name in a tree.There is an example about it in </span><a
moz-do-not-send="true"
href="http://api.geoext.org/1.0/examples/wms-tree.html">http://api.geoext.org/1.0/examples/wms-tree.html</a>.</div>
<div><br>
</div>
<div>
<div>var root = new Ext.tree.AsyncTreeNode({</div>
<div> text: 'GeoServer Demo WMS',</div>
<div> loader: new GeoExt.tree.WMSCapabilitiesLoader({</div>
<div> url: 'capabilities.xml',</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>autoload:true,</div>
<div> layerOptions: {buffer: 0, singleTile: true,
ratio: 1},</div>
<div> layerParams: {'TRANSPARENT': 'TRUE'},</div>
<div> // customize the createNode method to add a
checkbox to nodes</div>
<div> createNode: function(attr) {</div>
<div> attr.checked = attr.leaf ? false :
undefined;</div>
<div> return
GeoExt.tree.WMSCapabilitiesLoader.prototype.createNode.apply(this,
[attr]);</div>
<div> }</div>
<div> })</div>
<div> });</div>
</div>
<div><br>
</div>
<div><span>I have a capabilites XML in a local folder. I set the
relative path but nothing happens? When i see in firebug, it
is firing with options without with GET and hence no XML is
read ! I tried with absoulute path as well for one of the
website (<a moz-do-not-send="true" target="_blank"
href="http://www.lv-bw.de/dv/capabilities.xml">http://www.lv-bw.de/dv/capabilities.xml</a>)
but no avail. </span></div>
<div><br>
</div>
<div>Even in the examples in geoext.org if i change url of
data(wmscap.xml): to absoulute URL <a moz-do-not-send="true"
href="http://api.geoext.org/1.0/examples/data/wmscap.xml">http://api.geoext.org/1.0/examples/data/wmscap.xml</a>,
layers are not loaded in the tree. i scramble a bit in the
mail list, and saw some people were talking about this type of
problem and were saying it might be due to some proxy stuff.
But i still dont have a clear clue, why this is not working?</div>
<div><br>
</div>
<div>Any input would be greatly appreciated.</div>
<div><br>
</div>
<div>Regards</div>
<div>Sukuchha</div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>