CHtml::ajaxButton quotes in data option

Hello,

I want to make an AJAXButton with CHtml helper and the 'data'-option needs to be the javascript variabale 'order'.

I have this code:



<?php





echo CHtml::ajaxButton('Opslaan', '', array(


                                        'type' => 'POST',


                                        


                                        'data' => 'order',


                                        'success' => 'function(msg){


     alert( "Data Saved: " + msg );


   }'


));


?>


But now my HTML/Javascript code is generated:



jQuery('#yt0').click(function(){jQuery.ajax({'type':'POST','data':'order','success':function(msg){


     alert( "Data Saved: " + msg );


   },'url':'/rooster/group/order.htm','cache':false});return false;});


Now the ‘data’:‘order’ part is wrong, I want it to be: ‘data’:‘order’

On a strange way the success option is good.

Can anyone help me?

'js:order' instead of 'order', Yii recognizes the js: and will therefore treat it as javascript

Thanks! I didn't know that trick!