Changeset 6424 for cowsclient


Ignore:
Timestamp:
28/01/10 10:36:19 (9 years ago)
Author:
pnorton
Message:

Fixed the axisConfigRetriever so that it works with IE.

Location:
cowsclient/trunk/cowsclient/public/js
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/trunk/cowsclient/public/js/ajaxRetriever.js

    r6038 r6424  
    3737             
    3838            onRetrieve = function (xhr) { 
     39                 
     40//                WMSC.log("xhr.responseXML.documentElement.childNodes.length = "  
     41//                        + xhr.responseXML.documentElement.childNodes.length); 
     42                 
    3943                var resp = this._processResponse(xhr); 
    4044                this._addToLookup(params, resp); 
  • cowsclient/trunk/cowsclient/public/js/axisConfigRetriever.js

    r6038 r6424  
    2222         
    2323AxisConfigRetriever.prototype._processResponse = function (xhr) { 
    24     var builder = new SplitAxisConfigBuilder(xhr.responseXML.firstChild); 
     24     
     25    respXML = xhr.responseXML; 
     26 
     27    var builder = new SplitAxisConfigBuilder(respXML.documentElement); 
    2528    return builder.buildConfig(); 
    2629}; 
  • cowsclient/trunk/cowsclient/public/js/utils.js

    r6038 r6424  
    480480    var re = new RegExp(expression); 
    481481    var result = re.test(txt); 
    482     WMSC.log("expression =" + expression + " text =" + txt + " match = " + result); 
     482    //WMSC.log("expression =" + expression + " text =" + txt + " match = " + result); 
    483483    return result; 
    484484}; 
  • cowsclient/trunk/cowsclient/public/js/wmcRetriever.js

    r6191 r6424  
    2828                var onRetrieveWMC = function (xhr) { 
    2929                         
     30//                  WMSC.log("xhr.responseXML.documentElement.childNodes.length = "  
     31//                          + xhr.responseXML.documentElement.childNodes.length); 
     32                     
    3033                        //var wmc = new WMSC.WebMapContext(xhr.responseXML.documentElement); 
    3134                        var wmc = new WMSC.Capabilities(xhr.responseXML.documentElement); 
     35                        this.addWMCToLookup(endpoint, wmc); 
    3236                         
    33                         this.addWMCToLookup(endpoint, wmc); 
    34  
    3537                        onSuccessFunction(wmc); 
    3638                        }; 
Note: See TracChangeset for help on using the changeset viewer.