April 3, 2011
October 4, 2010
To add an ajax button to CGridView modify the buttons column as 'columns' => array( 'id', 'name', array( 'class'=>'CButtonColumn', 'template' => '{view} {update} {delete}', 'buttons'=>array( 'view' => array( 'url'=>'"index.php?r=admin/view&id=".$data->user_id."&m=users"', 'click' => "function (){ $('#viewTab').load($(this).attr('href'));return false; }" ) ), ), )
October 4, 2010
In html add the following div right before closing body tag <div class="ajax-loading"><div></div></div> Add the following CSS code to stylesheet. (Download loading-bgr.gif and loading.gif) div.ajax-loading{ position: fixed; top: 0; left: 0; height:100%; width:100%; z-index: 9999999; background-image: url('../../images/loading-bgr.gif'); opacity: 0.7; filter: alpha(opacity=70); /* ie */ -moz-opacity: 0.7; /* mozilla */ […]