Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Roger de Laborde on Oct 07, 2009 15:25
open dhtmlx forum
Layout using statusbar unloading issue

I have a layout, contained in a dhtmlxWindow. The layout has a statusbar attached to it. It all works happily until I try and close the Window.

I get the following error message:
this.statusbar.unload is not a function
if (this.statusbar) this.statusbar.unload();\r\n dhtmlxlayout.js (line 2306)


The full error from Firebug is:
this.statusbar.unload is not a function
anonymous(Object name=removeParent) dhtmlxlayout.js (line 2306)
anonymous(true) dhtmlxco...tainer.js (line 13)
anonymous() dhtmlxco...tainer.js (line 13)
anonymous(div.dhtmlx_window_active) dhtmlxwindows.js (line 44)
anonymous(div.dhtmlx_window_active) dhtmlxwindows.js (line 44)
anonymous() dhtmlxwindows.js (line 44)
anonymous() dhtmlxwindows.js (line 44)
[Break on this error] if (this.statusbar) this.statusbar.unload();\r\n dhtmlxlayout.js (line 2306)

The Code to declare it all:
this.dhx_map_wins = new dhtmlXWindows();
this.map_win = this.dhx_map_wins.createWindow('oMap_main_window', 0, 0, this.map_width, this.map_height);
this.map_win.allowResize();
this.map_win.setText(this.window_title);
this.map_layout = this.map_win.attachLayout("2U");

this.map_status = this.map_layout.attachStatusBar();

This is a new error since upgrading to version 2.5. We are using the enterprise edition. I have tried using the dhtmlxlayout.js file in this similar issue: http://www.dhtmlx.com/docs/products/kb/index.shtml?cat=18&page=1&q=11806
but it did not make a difference apart from giving me a nicely laid out js file for the error. (using the original js file tells me the error is on line 39)
Answer posted by Alex (support) on Oct 12, 2009 05:55

Hello,

the issue wasn't reproduced locally. The sample is  attached.

Please, provide the complete demo if the problem is still actual

Attachments (1)
sample.zip75.52 Kb
Answer posted by Roger on Oct 12, 2009 13:31
There must have been something odd in my layout.js file, I used the new one contained in the zip file and it worked immediately.
(The new file is 22k bigger than my old file ... curiouser and curiouser.)

Thanks guys, all sorted now.
Answer posted by Alex (support) on Oct 13, 2009 02:06
The sample contains libraries without compression. You can try to download the latest layout package from our website. Here codebase folder contains compresses versions.