A simplified snippet of code from the body:
alert(‘b’); gives the following error:
[Exception… “Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowInternal.alert]” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: "JS frame :: 10.1.1.11/jobtracker_dev/js/dhtm … xlayout.js
Please, check that all necessary js and css libraries are included. The sample is dhtmlxLayout/samples/01_init/01_object.html ( dhtmlx.com/docs/products/dht … bject.html )
Thanks. I’d already looed at the sample.
These are the js and css files:
<link rel=“stylesheet” type=“text/css” href=“<?php echo $css_path ?>main.css” media=“screen” />
The issue wasn’t reproduced locally. The sample is attached
sample.zip (46.9 KB)
Thanks - The sample works but that doesn’t help me.
I presume that when I get the error saying that my own function isn’t defined it is because of an error further up on the page which is not being reported.
I noticed that in v2, dhxLayoutRight is wrapped in an iframe but in v2.5 it is not. Why would this be and how can I control it?
I got the inner iframe back by changing:
dhxLayoutRight = new dhtmlXLayoutObject(parent.dhxLayout.cells(“b”), “<?php echo $hasChildView ? "2E" : "1C" ?>”, “dhx_skyblue”);
dhxLayoutRight = new dhtmlXLayoutObject(document.body, “<?php echo $hasChildView ? "2E" : "1C" ?>”, “dhx_skyblue”);
and now it all magically works.