Im doing an autoComplete Jquery, and on select it calls an action in controller:
views\index.php
$this->widget('zii.widgets.jui.CJuiAutoComplete', array(
'name'=>'test2',
'source'=> $arrayServices,
'options'=>array(
'select' => 'js:function(event, ui){
$.ajax({
type: "GET",
dataType: "json",
url: "index.php?r=SEMAFOROS/index",
data: {FiltersForm: ui.item.value},
success: function(data){
alert('ok');
},
error: function (jqXHR, textStatus, errorThrown) {
alert(textStatus);
alert(errorThrown);
},
});
}',
),
));
in my controller:
if (isset($_GET['FiltersForm']))
{
$response = array('return', 'msg', 'idk');
echo CJSON::encode($response);
}
It seems ok to me but the return of jquery call is always an error calling the function of error. What is my problem?
appreciate any tips

Help













