The commented code is not working,the uncommented code is working. in the parent js file, var tabbar or window.tabbar is created; In the case of tree, both ways it is working.

//window.parent.tabbar = parent.dhxLayout.cells("b").attachTabbar();
tabbar = parent.dhxLayout.cells("b").attachTabbar();

    window.parent.treeObj = dhxASLayout.cells("a").attachTree();
    treeObj = dhxASLayout.cells("a").attachTree();

It works. Please, see the attached demo
byIFrames.rar (253 KB)

thanks. But in my code, window.parent is getting null

thanks. But in my code, window.parent is getting null

And at reproduction of my example too?

It is crashing at the following line
//window.parent.tabbar = parent.dhxLayout.cells(“b”).attachTabbar();

and not moving further. Not sure about the reason for crash. BTW we are using prototype. I need assign tabbar to the global object such that it can be accessed anywhere.

Did you launch the file index.html?
We’ve tested it in different browsers. It works.

can we have webex or gotomeeting?

window.parent.globalTabbar= parent.dhxLayout.cells(“b”).attachTabbar();
this is the only line which is crashing. The given sample is working normally, can you try with prototype and see.

Also try & catch is not working for this block.

Try it in google chrome. Its not working. Its working fine in firefox.

The sample I sent is working, isn’t it? Please send one that doesn’t work.

please test in google chrome 17.0 & Firefox 6.0 and reply.

  1. create globalTabbar in container1.js
  2. instantiate globalTabbar like window.parent.globalTabbar= parent.dhxLayout.cells(“b”).attachTabbar() in container2.js
  3. USe the globalTabbar in container3.js to setTabActive(“t1”); (321 KB)

Sorry, but it is almost my demo.
Please, make YOUR complete demo to check it. It can be some structure with button (with function to build a tabbar).
My demo is working (even with your changes). Please, make some one more.