Help Setting Fullscreen Layout

Hi -

Firebug is giving me errors from simple coding with dhtmlx. The errors are:
dhtmlx.destructors is undefined

  • dhtmlx.js (line 530)

dhtmlx.destructors is undefined

  • dhtmlx.js (line 530)

l is undefined

  • dhtmlxlayout.js (line 11)

The code is:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
	<title>My Application</title>
	<link rel="stylesheet" type="text/css" href="<?=site_url('application/js/codebase/dhtmlx.css')?>">
	<script type="text/javascript" src="<?=site_url('application/js/codebase/dhtmlx.js')?>"></script>

	<link rel="stylesheet" type="text/css" href="<?=site_url('application/js/dhtmlxLayout/codebase/dhtmlxlayout.css')?>">
	<script type="text/javascript" src="<?=site_url('application/js/dhtmlxLayout/codebase/dhtmlxcommon.js')?>"></script>
	<script type="text/javascript" src="<?=site_url('application/js/dhtmlxLayout/codebase/dhtmlxcontainer.js')?>"></script>
	<script type="text/javascript" src="<?=site_url('application/js/dhtmlxLayout/codebase/dhtmlxlayout.js')?>"></script>
	<style type="text/css">
		html, body
		{
		   width: 100%;
		   height: 100%;
		   margin: 0px;
		   overflow: hidden;
		}
	</style>
	<script type="text/javascript">
	function app()
	{
		var layout_body = new dhtmlXLayoutObject( document.window, '1C' );
	}
	dhtmlxEvent( window,"load", app );
	</script>
</head>
<body>Howdy!</body>
</html>

Any help would be appreciated. Thanks in advance.

Warm Regards,
xjohnson

Hi,

There is a typo in your example:

dhtmlXLayoutObject(document.window, ‘1C’ );

instead of

dhtmlXLayoutObject(document.body, ‘1C’ );

Hi, Alexandra -

Thank you :smiley: