how to redirect a site page using ajaxbutton

Hi,

Sorry for being a newbie.  I am trying to create an ajaxButton to allow authenticated users to vote up and down.  But when I try to redirect the site in the controller, a windows pops up instead of going to the page.  Anyone know how to make it to go to the exact page 'site/login'? Thanks in advance.

public function actionUpdateButtonTargetLiked() {

		if(Yii::app()->user->isGuest) {

			$this->redirect('site/login');

		} else {

			

		

		}

	}



Chuck.

Check this similar thread - http://www.yiiframework.com/forum/index.php?/topic/26559-