dhtmlxLayout is raising IE to don't load website!

Hi there,

we’ve just implemented dhtmlLayout and now we get problems with the IE7. The generated paths for the images of dhtmlWindow aren’t correct. And this is the behaviour of the error. It seems to be, that the path of the dhtmlxWindow won’t be set correctly.

Kind regards
Henning

Could you please provide more information?

Hi there,

I can’t give you the exact error message because of I have an german Operating System.
The error message is:

"The website [URL] cannot be displayed.

Process canceled"

More isn’t to see.

In FF it works fine.

Kind regards
Henning

P.S.: If you contact me via e-mail, I can send you the link with all appropiate information to view the problem.

And what about some code?


Hi,



ok,  the following Javascript code is posted AFTER the div:



<script language=“javascript” type=“text/javascript”>
var dhxLayout = new dhtmlXLayoutObject(“parentId”, “2U”, “dhx_blue”);
tree = dhxLayout.cells(“a”).attachTree();
doInitGrid();
//dhxLayout.setEffect(“collapse”, true);
//dhxLayout.setEffect(“expand”, true);
dhxLayout.cells(“a”).setWidth(200);
dhxLayout.cells(“a”).setText(“Kategorie wählen”);
dhxLayout.cells(“b”).setText(“Produktauswahl”);
dhxLayout.setImagePath(“js/layout/imgs/”);
//tree=new dhtmlXTreeObject(“treeBox”,“100%”,“100%”,0);
tree.setImagePath(“js/tree/imgs/”);
tree.enableCheckBoxes(false);
tree.enableDragAndDrop(false);
tree.loadXML(“js/ajax.php?req=get_category_tree”);
tree.attachEvent(‘onSelect’, selectCategory);
//tree.enableSmartXMLParsing(true);
function selectCategory(id) {
mygrid.clearAll();
mygrid.load(“js/ajax.php?req=get_products&id=”+id+"&table_style=1", “xml”);
if(id != 1) {
dhxLayout.cells(“a”).collapse();
}
}
/*
whT = new dhtmlXGridObject(‘warehouseTable’);
whT.setImagePath(“js/tree/imgs/”);
whT.setHeader(“Lager, Bestand, Reserviert, Verfügbar, Stand”);
whT.setInitWidths("220,100,100, 100,");
whT.setColAlign(“left,left,left,left,left”);
//whT.setColTypes(“ro,ed”);
//whT.setColSorting(“int,str”);
whT.setSkin(“modern”);
whT.init();
//mygrid.loadXML(“grid.xml”);
/
</script>



Every command after



var dhxLayout = new dhtmlXLayoutObject(“parentId”, “2U”, “dhx_blue”);



raises an error. I tried to comment some out, but it doesn’t work.
The error comes from lime 70 in dhtmlxlayout.js, the part is:



this.polyObj[a].style.width = p[a][0]-2+“px”



Kind regards
Henning

FYI: The following information are delivered by Internet Explorer 8 Beta 2:



Website-Script error



User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 3.5.21022)
Zeitstempel: Tue, 21 Oct 2008 14:03:06 UTC




Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Row: 0
Col: 0
Code: 0
URI: mdorf.info/testpage/admin/bi … s&posid=37



 

Try manually fix layout’s code:

this._init = function() {
    …
    this.dhxWins.setImagePath(  here is your image path  );


Dear support,



the same problems exists further.
It seems, that the object have not been closed by your script (as the error says).



 



Kind regards



Henning


Some more information:



The target DIV “parentId” is placed in some tables and other divs.
Could this be the problem?



Kind regards
Henning


var dhxLayout = new dhtmlXLayoutObject(“parentId”, “2U”, “dhx_blue”);


try to replace “parentId” with id of new div


Hi,



sorry, but this is also not working.
It is the same error.

It seems to work only, if the
new dhtmlXLayoutObject(“parentId”, “2U”, “dhx_blue”);



is outer the last div or table.

If it is so, is this changeable?



Kind regards
Henning

IE has known bug with dyn. adding elements to the page, while page in rendering process.
Shortly - if you init some code, which creates content while document.body not loaded yet, from inline tag - it will throw error on new content creating.

may result in error



code

safe




code

safe



funciton f(){
code
}

the above is not specific to dhtmlx components , but may occur for any dynamic content