How to get the selected tab in CJuiTabs

I have CJuiTabs with tabs 1st Year | 2nd Year | 3rd Year | 4th Year and ‘0’ as the value for ‘selected’.

Each tab has CListView as content and basically it has sort functions.

The problem is, for example, if the selected tab was ‘3rd Year’ and clicked one of the sortable attributes in redirects a turn to the same page but ‘1st Year’ as the selected tab again.

Is their a way that I can get the selected tab so that when I chose a tab besides 1st Year and use sort it will redirect but with that tab selected.

I’m looking forward on changing


'options'=>array(

        'collapsible'=>false,

	'selected'=>'0',),

to


'options'=>array(

        'collapsible'=>false,

	'selected'=>$activeTab,),

Thanks for the help.

Hi,

Maybe it’s possible to parse $active_tab from url?

Take a look at this exapmle post

Regards