function parseResponseXML(){ //print(config.config,'Status:' +this.status); print('Status:'+this.status); if (this.status!=200) return; config.loadFileConfig.json=JSON.parse(this.responseText); config.loadFileConfig.cb(); } function loadFile(){ print('YY: '+config.loadFileConfig.url); let connRequest=new XMLHttpRequest(); connRequest.addEventListener("loadend",parseResponseXML); //function(e){parseResponseXML(e,config);}); connRequest.open("GET", config.loadFileConfig.url); connRequest.send(); } function getBasePath(){ let server=LABKEY.ActionURL.getBaseURL(); let basePath=server+"_webdav"; basePath+=LABKEY.ActionURL.getContainer(); return basePath; }