Articles Posted in the " Yii Ajax " Category

  • Yii ajax request and json response array

    Yii ajax request and json response array

    This tutorial will help you to understand the details of yii ajax request and response from controller. I will change the product list based on category change via ajax. When i change the “category” […]


  • Insert data into Dropdownlist by ajax request in yii

    Insert data into Dropdownlist by ajax request in yii

    This turorial have the details of dynamic data insertion to dropdownlist using ajax. I added the source code below for this concept. We have two dropdownlist in form “usercategory”,”usertype”. When we change the usercategory, […]


  • Ajax Submit Button in Yii

    Ajax Submit Button in Yii

    Normally we will use the form submit action via post or get method with page submit option. With out page refresh we can submit the form using ajax concept. It will be faster than […]


  • CHtml Ajax Button in yii

    CHtml Ajax Button in yii

    Example 1: In view.php page Write Follwing source code <?php echo CHtml::ajaxButton( 'Submit request', array('test/function'), array('data'=>array('test'=>$model->id)), array('update'=>'#update_selector') //this is the update selector of yours $('#update_selector').load(url); ); ?> In controller.php write following source code public […]


  • Checkbox value in ajax request of yii

    Checkbox value in ajax request of yii

    This is one of the way to send data dynamicallay in ajaxbutton request of yii. When you click on ajaxbutton We will get the selected checkbox value and send this via ajax <?php Yii::app()->clientScript->registerScript('checkBoxSelect', […]


  • Yii Ajax

    Yii Ajax

    Ajax Submit Button Ajax Button Ajax Link Ajax Support  Ajax Submit Button Ajax submit button can submit the current form in POST method. public static string ajaxSubmitButton( string $label, mixed $url, array $ajaxOptions=array ( […]