how to identify Ajax Request Particularly

i have two ajax requests in a page i need only one at a time to execute what should i do…

You can use param from GET request, i.e.






and in controller action:


 if($type === 'lsit')






    do else...



If I understand you correctly, then you should execute them synchronously. By default, AJAX calls are asychronous.

The jQuery AJAX options are here: (click Options)

Add something like

array('async' => false)

to your CHtml::ajax… helper.

thanks qwerty i used ur idea and got it