Changeset 4476 for sandbox/2.2.0.2/expressoMail1_2
- Timestamp:
- 05/20/11 16:59:20 (13 years ago)
- Location:
- sandbox/2.2.0.2/expressoMail1_2/js
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.2.0.2/expressoMail1_2/js/common_functions.js
r4457 r4476 644 644 options += "<option value='"+data[x].uid+"'>"+data[x].cn+"</option>"; 645 645 } 646 connector.loadScript("finder", "../services/"); 646 647 connector.loadScript("sharemailbox"); 647 648 if (typeof(sharemailbox) == 'undefined') -
sandbox/2.2.0.2/expressoMail1_2/js/connector.js
r4062 r4476 459 459 } 460 460 461 cConnector.prototype.loadScript = function(scriptPath) { 462 if (document.getElementById('uploadscript_'+scriptPath)) { 463 return; 464 } 465 var head = document.getElementsByTagName("head")[0]; 466 var script = document.createElement("SCRIPT"); 467 script.id = 'uploadscript_'+scriptPath; 468 script.type = 'text/javascript'; 469 if(is_ie) { 470 this.oxmlhttp.open("GET", "js/"+scriptPath+".js?"+this.updateVersion, false); 471 this.oxmlhttp.setRequestHeader('Content-Type','text/plain'); 472 this.oxmlhttp.send(null); 473 if(this.oxmlhttp.status != 0 && this.oxmlhttp.status != 200 || this.oxmlhttp.status == 0 && this.oxmlhttp.responseText.length == 0) 474 throw new Error("Error " + this.oxmlhttp.status + "("+this.oxmlhttp.statusText+") when loading script file '"+scriptPath+"'"); 475 script.text = this.oxmlhttp.responseText; 476 } 477 else { 478 script.src = "js/"+scriptPath+".js?"+this.updateVersion; 479 } 480 481 head.appendChild(script); 482 return; 461 cConnector.prototype.loadScript = function(scriptPath, basePath) 462 { 463 if (document.getElementById('uploadscript_'+scriptPath)) { 464 return; 465 } 466 467 if( basePath == null ) 468 basePath = "js/"; 469 470 var path = basePath+scriptPath+".js?"+this.updateVersion; 471 472 var head = document.getElementsByTagName("head")[0]; 473 var script = document.createElement("SCRIPT"); 474 script.id = 'uploadscript_'+scriptPath; 475 script.type = 'text/javascript'; 476 if(is_ie) { 477 this.oxmlhttp.open("GET", path, false); 478 this.oxmlhttp.setRequestHeader('Content-Type','text/plain'); 479 this.oxmlhttp.send(null); 480 if(this.oxmlhttp.status != 0 && this.oxmlhttp.status != 200 || this.oxmlhttp.status == 0 && this.oxmlhttp.responseText.length == 0) 481 throw new Error("Error " + this.oxmlhttp.status + "("+this.oxmlhttp.statusText+") when loading script file '"+scriptPath+"'"); 482 script.text = this.oxmlhttp.responseText; 483 } 484 else { 485 script.src = path; 486 } 487 488 head.appendChild(script); 489 return; 483 490 } 484 491 //------------------------------------ END: Functions for Progress Bar -------------------------------------------------//
Note: See TracChangeset
for help on using the changeset viewer.