Revision #7                                    has been created by  Kostas Apazidis (KonApaz)                                    on Apr 15, 2014, 7:38:56 AM with the memo:
 Kostas Apazidis (KonApaz)                                    on Apr 15, 2014, 7:38:56 AM with the memo:
                                
                                
                                    #                                
                                                                    « previous (#4)                                                                                                    next (#8) »                                                            
                            Changes
                            
    Title
    unchanged
    An Easy Solution for Dependent dropDownList Using AJAX
    Category
    unchanged
    Tips
    Yii version
    unchanged
    
    Tags
    unchanged
    AJAX, drop down list
    Content
    changed
    [...]
array(
    'prompt'=>'Select Region',
    'ajax' => array(
    'type'=>'POST', 
    'url'=>CController::createUrl('loadcities'),Yii::app()->createUrl('YourController/loadcities'), //or $this->createUrl('loadcities') if '$this' extends CController
    'update'=>'#city_name', 
  'data'=>array('region_id'=>'js:this.value'),
  )));[...]