Problem with CJuiTabs

Hi dears,

I have a bit problem in setting the tab active.

I want to set the tab active if one click on the url from other page and after loading the page,

the selected tab should be selected.

url :

domain/controller/action#tab-id

Please note that

All the data is fetched using AJAX.

Any help?

Thanks dear,

I have resolved the issue as

First Get the Current URL of the page as




$current_url=Yii::app()->request->requestUri;



Then get the Tab that is active using the code below




$active_tab=parse_url($current_url,PHP_URL_FRAGMENT);



And Pass the value of the active tab to the optional tab of the JQuery Section as





$this->widget('zii.widgets.jui.CJuiTabs', array(

	'tabs' => array(

			...

                        ....

	),

	// additional javascript options for the tabs plugin

	'options' => array(

		

		'select' =>$active_tab,

	),

));



Hopefully, someone get help.

Thanks