I would like my ajax link to take a jquery variable that I am passing

I would like my ajax link to take a jquery variable that I am passing


echo CHtml::ajaxLink(

	'Send',          // the link body (it will NOT be HTML-encoded.)

	array('Details/ex', 'id'=>$id), 

	array(

		'update'=>'#form2',







	),array('id'=>'someid', 'class'=>'someanotherclass')

);






I want in ‘id’=>$id . $id to have my jquery variable

My Jquery function




$(function() {$( ".xpr" )

			//.button()

			.click(function() {

				$( "#form2" ).dialog( "open" );




                                   pos = this.id;                                 


			});

All of the above is done without reloading the page

How can I achieve this?

Any Help?

What you want (javascript var to php var) is only possible with some workarounds cause PHP is on the server and javascript is on the client.

Read some of the google - javascript var to php search results and you should find a solution.