Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Frank on Sep 20, 2009 17:03
open dhtmlx forum
dhtmlXLayout.unload()

Hi,

Tiy to use the function unload to get an iframe with dhx layout unloaded :

function unload() {
if (dhxLayout != null) {
dhxLayout.unload();
dhxLayout = null;
}
}

When I call this function and a menu is attached, it gives me an error saying: "this.menu.unload is not a function"

Initially the page started with:

function doInitGridMaker() {
if (dhxLayout != null) {
dhxLayout.unload();
dhxLayout = null;
}
dhxLayout = new dhtmlXLayoutObject(document.body, "3T");
dhxMenu = dhxLayout.attachMenu();

This works, after clicking a menu item I start:

function doInitGridMaker() {
if (dhxLayout != null) {
dhxLayout.unload();
dhxLayout = null;
}
dhxLayout = new dhtmlXLayoutObject(document.body, "1U");
dhxMenu = dhxLayout.attachMenu();

which gives me the mentioned error.
We're using both 2.5 gnu and pro.

Thanks for your help,
Frank
Answer posted by Alex (support) on Sep 21, 2009 08:47

Hello,

the issue is confirmed. We will send you the fix when it's ready (possibly in one-two weeks).

Answer posted by Support on Sep 28, 2009 06:19
Hello,

Please try attached dhtmlxlayout.js
Attachments (1)