5415 Posts in 1651 Topics by 1188 members
|Go to End|
20 February 2009 at 12:59pm Last edited: 20 February 2009 1:03pm
I've got a little problem with tabstrip in cms, in my new module (which is php file, based of already generated CMS's code). I know, that i need something like that:
the content of 1 tab
the content of the other tab
I observed in firebug, how styles are changing , i mean:
in <ul> with class "tabstrip" , the active <li> have class: current
Active <div> have also class: current, and and other parametr is: style="display: block;"
Inactive <div> have style="display: none;"
My problem is, when I open my new module in CMS, both of my tabs are inactive. I tried to set stiff parameters for one tab, like class="tab current" and style="display: block;" , but when whole page is loaded, only <li> is still active, but both of tabs are not (styles are again set to "display: none;" )
Is there any possibility to run some kind of function from tabstrip.js file, or any other at the end of my code, to avoid this situation?
Maybe exists other way to ensure, when user open this module, one of tab will be active?
Eventually, i could use an anchor in the URL address, but for me it doesn't look professionally ;-)
If somebody could help me, i would be greatfull.
21 February 2009 at 11:42am
My problem was solved .
There was "/" between "newModule.php" and "#something"
|Go to Top|