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


Hello,


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

Hello,

Please try attached dhtmlxlayout.js

dhtmlxlayout.js.zip (17.8 KB)