Index: openacs-4/packages/imsld/www/resources/imsld.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/resources/imsld.js,v diff -u -r1.10 -r1.11 --- openacs-4/packages/imsld/www/resources/imsld.js 25 Mar 2009 19:39:07 -0000 1.10 +++ openacs-4/packages/imsld/www/resources/imsld.js 17 Jun 2009 08:00:02 -0000 1.11 @@ -14,18 +14,18 @@ var body = bodies[0]; if (document.documentElement && document.documentElement.currentStyle && typeof document.documentElement.clientWidth != "undefined" && document.documentElement.clientWidth != 0) { - o.width = document.documentElement.clientWidth + 2*parseInt(document.documentElement.currentStyle.borderWidth,10) - o.style.left; - o.height = document.documentElement.clientHeight + 2*parseInt(document.documentElement.currentStyle.borderWidth,10) - o.style.top; + o.width = document.documentElement.clientWidth - 6; + o.height = document.documentElement.clientHeight - 6; } else if (document.all && document.body && typeof document.body.clientWidth != "undefined") { - o.width = document.body.clientWidth + 2*parseInt(document.body.currentStyle.borderWidth,10) - o.style.left; - o.height = document.body.clientHeight + 2*parseInt(document.body.currentStyle.borderWidth,10) - o.style.top; + o.width = document.body.clientWidth - 6; + o.height = document.body.clientHeight - 6; } else if (window.innerWidth) { - o.width = window.innerWidth - o.style.left - 30; - o.height = window.innerHeight - o.style.top - 50; + o.width = window.innerWidth - 30; + o.height = window.innerHeight - 50; } else if (document.body && typeof document.body.clientWidth != "undefined") { @@ -244,14 +244,11 @@ ac.className=ai; ab.className=aj; - ac.style.float = 'left'; - ab.style.float = 'left'; - return false; } function submitForm(form, contentDiv) { - var objXmlHttp=null + var objXmlHttp=null; try { objXmlHttp = new XMLHttpRequest(); } catch(e) { @@ -275,7 +272,11 @@ e.style.display = "none"; } if (contentDiv == "imsld_activity_tree" || contentDiv == "imsld_environment") { - delete window.treeClass; + try { + delete window.treeClass; + } catch(e) { + window.treeClass = undefined; + } convertTrees(); } } @@ -292,24 +293,32 @@ url = url.replace(/\/$/, ''); } } - objXmlHttp.open(method,url,true); - var enctype = (form.enctype == "application/x-www-form-urlencoded") ? "POST" : form.enctype; - objXmlHttp.setRequestHeader('Content-Type', enctype); - var list = new Array(); for (var i=0; i