Hello,
I have a problem with the code
Tabbar.tabWindow(Tabbar.getActiveTab()).myFunction()
Tabbar is a Tabbar initialized by calling
.attachTabbar()
of a dhtmlXLayoutObject - and it is working fine. I have attached a URL to it viaTabbar.addTab("t0", "foo");
Tabbar.setContentHref("t0", "test.aspx");
Tabbar.setTabActive("t0");. âtest.aspxâ contains the function âmyFunctionâ, so I should be able to call it like this, shouldnât I?
I get the following message: (Google Chromeâs console)
Uncaught TypeError: Cannot read property 'contentWindow' of undefined
(line 54 in âdhtmlxtabbar.jsâ)
What am I doing wrong?
Thank you, BjöNi
P.S.: Iâm from Germany, so my English might not be the best
I searched a bit in the code of the dhtmlxtabbar.js and found the following way to access a function:
Tabbar._content[Tabbar.getActiveTab()].getElementsByTagName("div")[0].getElementsByTagName("iframe")[0].contentWindow.myFunction())