I've started using the excellent WMSCapabilitiesLoader & it works great 
in FF & Chrome.
However if I switch from the example local XML file to a remote one then 
it fails :/
(Includes the original source: 
http://demo.opengeo.org/geoserver/ows?service=WMS&request=GetCapabilities)

The 1st error I get is:
'null' is null or not an object

which comes from OL's WMSCapabilities.js +60 & tracked down to this call:
root.getAttribute("version");

This is tracked down to FF/Chrome returning data as type string, but IE 
as type object.

Now there seems to be some bad logic in this function, since surely the 
typeof(data)==string check should wrap more than just the 1st line?

The type Object problem is tracked back to WMSCapabilitiesLoader.js +71
response.responseXML || response.responseText);
If the response.responseXML is removed then response.responseText works 
in all 3 major browsers.

However it then still errors later on in IE with LayerLoader.js +134:
Object doesn't support this property or method

That's from this line:
var nodeIndex = node.recordIndexToNodeIndex(index+records.length-1);

Not quite sure what to do with that...

The WMS does, however, display fine...

PS I would have logged this as a ticket in Trac, but I can't see any way 
on the website of getting a login?

PPS Whilst I'm here, is anyone looking at adding Legend support?
This would be some great icing :D

Many thanks,
Fran.
_______________________________________________
Dev mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/dev

Reply via email to