CJuiTabs bug: relaod when switch tab (ajax url)

Hi All!










$ajaxUrl1 = $this->createUrl('ClientAccountPeople/ViewInDialog&id='.$model->id_number_l); 

$ajaxUrl2 = $this->createUrl('ClientAccountPeople/ViewInDialog&id='.$model->id_number_2); 

$ajaxUrl3 = $this->createUrl('ClientAccountPeople/ViewInDialog&id='.$model->id_number_3); 


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

    'tabs'=>array(

        'AjaxTab1'=>array('ajax'=>$ajaxUrl1),

        'AjaxTab2'=>array('ajax'=>$ajaxUrl2),

        'AjaxTab3'=>array('ajax'=>$ajaxUrl3),

    ),

    // additional javascript options for the tabs plugin

    'options'=>array(

        'collapsible'=>true,

    ),

));




first: ‘AjaxTab1’, the ajaxUrl1 was loaded.

second: click ‘AjaxTab2’, the ajaxUrl2 was loaded.

three: click ‘AjaxTab1’, the ajaxUrl1 will reload.

I don’t want reload, how to solve this problem?

Thanks!

Can you provide more details? What does it mean "reloaded"? What is the difference between "load" and "reload" in your example? Does it means that when you click tab three, you visually see that contents are being loaded and then reloaded second time (some kind of flicker or refresh)?

Sorry!





first: 'AjaxTab1', the ajaxUrl1 was loaded.

second: click 'AjaxTab2', the ajaxUrl2 was loaded.

three: click 'AjaxTab1', the ajaxUrl1 will reload.




ok, i have the sam problem woth an old app, the solution to this is not in yii, is in jquiery UI, use in your options the modifier cache, set it to true and your page doesnt reload anymore.

Tell me if works for you

Rickydj