I’ve been working in Yii for the last couple of months, and I stumbled onto the following problem.
The project that I’m working on (Yii version 1.1.3) has several implementations of CJuiAutoComplete.
The autocomplete works great in firefox, but not in IE, or chrome. When you click on the autocomplete options to fast, it closes the auto complete without setting the value.
It is not possible to upgrade Yii to a different version, nor is it possible to upgrade the jquery of CJuiAutoComplete (have tried both, and failed…)
What can I do, has anyone else encountered this problem? and what is the solution or fix for this?
Yii::app()->controller->createWidget("zii.widgets.jui.CJuiAutoComplete",array( "model"=>$model, "attribute"=>"type", "sourceUrl"=>Yii::app()->controller->createUrl("/Core/service/ajax&FORMAT=text",array("SID"=>"module.service.action","action_id"=>$this->get('action_id'))), "htmlOptions"=>array_merge($hasReadonly, array("id"=>"Action_type", 'size' => 60, 'maxlength'=>255)) ))->run();
(code was slightly altered to hide private data)
Thx to anyone for help/advice