437 |
437 |
438 if (!tinyMCE.settings.strict_loading_mode) |
438 if (!tinyMCE.settings.strict_loading_mode) |
439 return; |
439 return; |
440 |
440 |
441 if (this.loadingIndex < this.pendingFiles.length) { |
441 if (this.loadingIndex < this.pendingFiles.length) { |
442 se = d.createElementNS('http://www.w3.org/1999/xhtml', 'script'); |
442 try { |
443 se.setAttribute('language', 'javascript'); |
443 /* |
444 se.setAttribute('type', 'text/javascript'); |
444 se = d.createElementNS('http://www.w3.org/1999/xhtml', 'script'); |
445 se.setAttribute('src', this.pendingFiles[this.loadingIndex++]); |
445 se.setAttribute('language', 'javascript'); |
446 |
446 se.setAttribute('type', 'text/javascript'); |
447 d.getElementsByTagName("head")[0].appendChild(se); |
447 se.setAttribute('src', this.pendingFiles[this.loadingIndex++]); |
|
448 */ |
|
449 |
|
450 se = d.createElement('script'); |
|
451 se.language = 'javascript'; |
|
452 se.type = 'text/javascript'; |
|
453 se.src = this.pendingFiles[this.loadingIndex++]; |
|
454 |
|
455 d.getElementsByTagName("head")[0].appendChild(se); |
|
456 } catch(e) { |
|
457 var error = e.toString(); |
|
458 alert(error); |
|
459 } |
448 } else |
460 } else |
449 this.loadingIndex = -1; // Done with loading |
461 this.loadingIndex = -1; // Done with loading |
450 }, |
462 }, |
451 |
463 |
452 loadCSS : function(url) { |
464 loadCSS : function(url) { |
1518 if (tinyMCE.settings.strict_loading_mode && this.loadingIndex != -1) { |
1530 if (tinyMCE.settings.strict_loading_mode && this.loadingIndex != -1) { |
1519 window.setTimeout('tinyMCE.onLoad();', 1); |
1531 window.setTimeout('tinyMCE.onLoad();', 1); |
1520 return; |
1532 return; |
1521 } |
1533 } |
1522 |
1534 |
1523 if (tinyMCE.isRealIE && window.event.type == "readystatechange" && document.readyState != "complete") |
1535 if (tinyMCE.isRealIE) |
1524 return true; |
1536 { |
|
1537 try |
|
1538 { |
|
1539 if ( typeof(window.event) == 'object' && window.event != null ) |
|
1540 { |
|
1541 try |
|
1542 { |
|
1543 if ( window.event.type == "onreadystatechange" ) |
|
1544 { |
|
1545 try |
|
1546 { |
|
1547 if ( document.readyState != "complete" ) |
|
1548 { |
|
1549 return true; |
|
1550 } |
|
1551 } |
|
1552 catch(e) |
|
1553 { |
|
1554 alert('inner error: ' + e.description); |
|
1555 } |
|
1556 } |
|
1557 } |
|
1558 catch(e) |
|
1559 { |
|
1560 alert('middle error: ' + e.description); |
|
1561 } |
|
1562 } |
|
1563 } |
|
1564 catch(e) |
|
1565 { |
|
1566 alert('Outer error: ' + e.description); |
|
1567 } |
|
1568 } |
1525 |
1569 |
1526 if (tinyMCE.isLoaded) |
1570 if (tinyMCE.isLoaded) |
1527 return true; |
1571 return true; |
1528 |
1572 |
1529 tinyMCE.isLoaded = true; |
1573 tinyMCE.isLoaded = true; |