Hi i am trying to pass value to controller via ajaxlink and i am getting error 500 (internal server error)
does anyone know what is the issue? this is my code…
<?php
echo CHtml::ajaxLink(
"OK",
Yii::app()->createUrl( 'search/Providerresults') ,
array(
'type' => 'POST',
'beforeSend' => 'function() { document.getElementById("forAjaxRefresh").innerHTML="loading..."}',
'success' => 'function( data )
{document.getElementById("forAjaxRefresh").innerHTML=data;}',
'data' => array(
'term' => 'js:$("#ServiceproviderForm_for").val()',
'near' => 'js:$("#ServiceproviderForm_near").val()',
),
));
?>