ajaxLink & CSRF token

HOW?  ::)



<?php





	CHtml::ajaxLink('',


		array('item/stoptrack', 'id' => $item->id),


		array('type'=>'POST', 'success'=>"js:function(){ jQuery('#time_status_".($item->id)."').slideUp(function(element){ jQuery(element).remove(); }); }"),


		array('class'=>'delete', 'title' => 'stop tracking')


	)





and got 400 Http Error:

Bad Request

The CSRF token could not be verified.

The request could not be understood by the server due to malformed syntax.

Please do not repeat the request without modifications.

Enclose this link with CHtml::form() ?

How can i do Loading… status while loading?

It must be onclick event i think, where it can be passed?

Quote

How can i do Loading... status while loading?

It must be onclick event i think, where it can be passed?

solved :)

i just add 'beforeSend' value

i love Yii :))