Problem loading data with setContentHref

Folks,

I am having a problem loading data into some tabbars using the setContentHref function. Using Firefox I get the following error:

TypeError: this.cells(…) is null in dhtmlx.js line 1881

In Chrome I get:

Uncaught TypeError: Cannot set property ‘_delay’ of null dhtmlx.js:1881

Here is the code:

var tabbar = layout.cells(‘a’).attachTabbar();
tabbar.loadXML(“arc?fl=sm/config-tabs.xml”);
tabbar.setHrefMode(“iframe”);
tabbar.setContentHref(“id1”, url1);

I get the same error is I use “ajax-html” instead of “iframe”.

Any help would be greatly appreciated.

Thanks,

Daryl

Hi
You need to call this method in aftercall:

var tabbar = layout.cells('a').attachTabbar(); tabbar.setHrefMode("iframe"); tabbar.loadXML("arc?fl=sm/config-tabs.xml", function(){tabbar.setContentHref("id1", url1);});