[eluser]Andy UK[/eluser]
Hmm nope. Still not following. All I really want to do is pass a variable from a view to the default controller. With any other controller I would just add it as an extra segment of the uri after the controller segment.
Not sure why javascript is necessary, since each view will show its respective tab as active. It's just a case of adding class="active" for the respective <li>.
Perhaps your method is valid, but without expanding the explanation a bit, I don't think I'll ever understand it. For example, how is a variable assigned when clicking on a tab? Bear in mind that my tabs are just padded <a> tags inside of <li> tags.
What I want to do is something like:
Home page with tab No. 1 active (html snippet from view home_tab1)
Code:
<li class="active"><a href="default_controller/tab_1">TAB 1</a></li>
<li><a href="default_controller/tab_2">TAB 2</a></li>
<li><a href="default_controller/tab_3">TAB 3</a></li>
Home page with tab No. 2 active (html snippet from view home_tab2)
Code:
<li"><a href="default_controller/tab_1">TAB 1</a></li>
<li class="active><a href="default_controller/tab_2">TAB 2</a></li>
<li><a href="default_controller/tab_3">TAB 3</a></li>
Home page with tab No. 3 active (html snippet from view home_tab3)
Code:
<li><a href="default_controller/tab_1">TAB 1</a></li>
<li><a href="default_controller/tab_2">TAB 2</a></li>
<li class="active><a href="default_controller/tab_3">TAB 3</a></li>