[SOLVED] getActiveTab and init from HTML Structure


I used HTML structure to initialize a TabBar and it works.

To refresh my tab’s content, i have a function like this :
if ((a_tabbar.getActiveTab()==‘a1’) && (document.getElementById(“a1”).innerHTML=="")){ …

On firefox and chrome it works but not on IE8.

I’ve got this text error :
“Object doesn’t support this property or method”

After tests, getActiveTab() and setActiveTab() seem don’t work with this initialization.
Is there something to do? Or maybe i do something wrong.

Thanks for your help


make sure that getActiveTab after tabbar initialization. Here is the related post:



Thank you very much, this post exactly answers my question!
I did not know that we can use oninit="" on a div.

Thanks for your help!