summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
authorChristian Schneider2006-12-14 15:57:16 +0000
committerChristian Schneider2006-12-14 15:57:16 +0000
commit8b5892069871ccfbe7dd8b4df211b0c7061a5365 (patch)
tree1f9f4466bb652a75f9be44dbe121433dc664dcb7 /itjs
parentfd9171e0df775da9c4a3ea22e8f95ec75d3b3897 (diff)
downloaditools-8b5892069871ccfbe7dd8b4df211b0c7061a5365.tar.gz
itools-8b5892069871ccfbe7dd8b4df211b0c7061a5365.tar.bz2
itools-8b5892069871ccfbe7dd8b4df211b0c7061a5365.zip
Fix fall back mode if ActiveX is disabled
Diffstat (limited to 'itjs')
-rw-r--r--itjs/boot.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/itjs/boot.js b/itjs/boot.js
index a0ec24f..73ca86b 100644
--- a/itjs/boot.js
+++ b/itjs/boot.js
@@ -59,7 +59,7 @@ function it_boot_init()
window.it_domtimer = null;
var konqueror = navigator.userAgent.match(/konqueror/i);
var doc = document;
- var dom = doc && (dom = document.getElementById('it_boot_dom')); // HTML has been rendered
+ var dom = doc && (dom = doc.getElementById('it_boot_dom')); // HTML has been rendered
var view = dom && doc.defaultView; // We can check if stylesheet is active
var style = view && view.getComputedStyle && view.getComputedStyle(dom, '');
var css = window.it_boot_checkcss(style, "visibility", "hidden"); // CSS active (inline style on tag)
@@ -143,8 +143,16 @@ function it_boot(file, isretry)
}
else
{
- var tag = document.createElement("script");
- tag.src = it_boot_addparam(file, 'init=1');
- dom.appendChild(tag);
+ var doc = document;
+ var dom = doc && (dom = doc.getElementById('it_boot_dom')); // HTML has been rendered
+
+ if (dom)
+ {
+ var tag = doc.createElement("script");
+ tag.src = it_boot_addparam(file, 'init=1');
+ dom.appendChild(tag);
+ }
+ else
+ window.it_domtimer = window.setTimeout("it_boot('" + file + "')" , 42);
}
}