Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stefan Riedel-Seifert on Feb 10, 2009 05:47
open dhtmlx forum
Layout - IE6 dumps when initialization script is includion between form tags

Hello,

when the code fragment
<SCRIPT>
var layout = new dhtmlXLayoutObject(document.body, "3T");
</SCRIPT>

is between <FORM> and </FORM> IE6.0 aborts, FF3.0 not.

Example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0096)http://linvm71.endress.com:8080/sap(bD1lbiZjPTIwMA==)/bc/bsp/euh/mms/private/object/object__.htm -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><LINK
href="object___files/dhtmlxlayout.css" type=text/css rel=stylesheet><LINK
href="object___files/dhtmlxlayout_dhx_blue.css" type=text/css
rel=stylesheet><LINK href="object___files/dhtmlxwindows.css" type=text/css
rel=stylesheet><LINK href="object___files/dhtmlxwindows_dhx_blue.css"
type=text/css rel=stylesheet>
<SCRIPT src="object___files/dhtmlxcommon.js"></SCRIPT>

<SCRIPT src="object___files/dhtmlxlayout.js"></SCRIPT>

<SCRIPT src="object___files/dhtmlxwindows.js"></SCRIPT>
<LINK href="object___files/dhtmlxtree.css" type=text/css rel=STYLESHEET><LINK
href="object___files/context.css" type=text/css rel=STYLESHEET>
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY>
<FORM>
<SCRIPT>
var layout = new dhtmlXLayoutObject(document.body, "3T");



</SCRIPT>
</form>
</BODY></HTML>

A solution may be, to place it outside.

Regards, Stefan
Answer posted by Alex (support) on Feb 10, 2009 08:31
Yes. Please, try to place layout initialization after form tags or on body onload.