I have for example 2 tabs which include an iframe. The second tab have an other group of tabs (attached a tabbar) with other iframes.
Here is the code:
The problem is very strange. At the first view the complete solution works fine. But if I change the tab (on the frontend) from 2 to 1 and then from 1 to 2 were the content blank and I only see the alert “false” instead of the iframes, but the first tab works fine at this moment.
Hello
You have ‘iframe’ mode. It assumes that in content zone will be iframe.
But you use the attachTabbar() method.
The best way is using cells ("").attachURL. Delete this: mainTabbar.setHrefMode (“iframe”);
thank you for your quickly help. Your result is better than mine.
But I realy dont unterstand, why the use of iframes in tabs so strongly and with so different result than with cells although both of them includes php-content-files
How else, it works better with attachURL and I’m grateful to you!
There is an event, which gets this parameter - prevId: tabbar.attachEvent(“onSelect”, function(id,prevId) { … });
Just set this parameter as a global variable.
Ok, I now noticed, that if I change the main-tabs, the names of the tabs have been renamed. The one tab has the name "“Active tab” and the other only “Tab”, like the names in the new codeblock
I dont know, if you understand me, what I mean.
If an user navigate in the tabbar and has for example the tab3 open. Then he refreshes the complete website and the last opened tab is always on top.
So, in this case: save active tab id (getActiveTab method) in cookies and after reload of the page restore this id and set active (setTabActive method).