hi,
ive implemented CJuiAutoComplete successfully and now wanted to have kind of LOADING IMAGE showing up for the waiting user.
beforesend and complete seems not to work for this. i usually use this for my ajaxbuttons and work fine. but here doesnt work. any ideas? And what does showAnim => fold mean?
$this->widget('zii.widgets.jui.CJuiAutoComplete', array(
'id' => 'test',
'name' => 'test',
'value' => 'test',
'source' => $this->createUrl('site/test'),
'options' => array(
'showAnim' => 'fold',
'beforeSend' => 'js:function(){
$("#loading").html("LOADING IMAGE HERE");
}',
'complete' => 'js:function(){
$("#loading").html("");
}',
'select' => 'js:function(event, ui){
$("#User_location_id").val(ui.item["id"]);
$("#User_location_name").val(ui.item["label"]);
}'
),
'htmlOptions' => array(
//'style' => 'height:20px;'
),
));