<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><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 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 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 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 style="position:fixed"></div>
</div></body></html>