Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by guest on Nov 18, 2008 04:35
open dhtmlx forum
dhtmlxlayout - ie7 shows a blank screen

hello,

i try to use dhtmlxlayout. my example works fine with firefox and opera. but ie 7 shows a blank screen. why?

here is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>dhtmlx</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="dhtmlx/dhtmlxlayout.css"></link>
<link rel="stylesheet" type="text/css" href="dhtmlx/dhtmlxlayout_dhx_blue.css"></link>
<link rel="stylesheet" type="text/css" href="dhtmlx/dhtmlxwindows.css"></link>
<script src="dhtmlx/dhtmlxcommon.js"></script>
<script src="dhtmlx/dhtmlxlayout.js"></script>
<script src="dhtmlx/dhtmlxwindows.js"></script>

</head>
<body style="width:100%; height:100%; margin:0px; overflow:hidden;">
<script>
// initialization of the layout
var dhxLayout = new dhtmlXLayoutObject(document.body, "3T");
</script>
</body>
</html>
Answer posted by Support on Nov 18, 2008 05:51
Hello,

try this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Fullscreen Init</title>
    <!-- code including there -->
    <style>
        HTML, BODY {
            width: 100%;
            height: 100%;
            margin: 0px;
            overflow: hidden;
        }
    </style>
    <script>
        var dhxLayout;
        function doOnLoad() {
            dhxLayout = new dhtmlXLayoutObject(document.body, "3L");
        }
    </script>
</head>
<body onload='doOnLoad();'>
</body>
</html>
Answer posted by guest on Nov 18, 2008 06:28
thanks, it works. but i wonder why the layout example "fullscreen_inner.html" from the dhtmlxsuite works fine without onload-function in ie7.
Answer posted by Support on Nov 18, 2008 06:30
fullscreen_inner.html used different doctype.
Answer posted by guest on Nov 18, 2008 06:37
i've found the solution. now it works fine. thanks for your help.