This source to Apply the AjaxSubmitButton instead of submitButton in yiiYii CHtml ajaxSubmitButton I added ajaxsubmitbutton instead of submitButton. When i click the submit button I will send form data through ajax post and i will do controller work for insert and i render the listdata using CHtml::listData() and i will set the response value to eventlist dropdownlist. So I am updating the event list without page refresh using ajaxsubmitbutton of yiiFor More Details www.bsourcecode.com
Showing posts with label Yii Ajax. Show all posts
Showing posts with label Yii Ajax. Show all posts
Thursday, July 26, 2012
Ajax Submit Button in Yii
by Unknown
Monday, July 23, 2012
insert data into Dropdownlist by ajax request in yii
by Unknown
In view.php ----------------- In controller.php -----------------
Thursday, July 19, 2012
Tuesday, May 22, 2012
ajax request with json in yii
by Unknown
Ajax request using Yii ajaxButton
json mixing format like dot,associative array etc In view.php -------------- <?php echo CHtml::ajaxButton('User List',CController::createUrl('user/active'), array( 'type' => 'POST', 'dataType'=>'json', 'data'=>"js:callData()", Call JS Function OR Give datastring 'url'=> 'user/active', 'success'=>"function(response){ alert(response); if(response!=''){ alert(response.url); if(response['message']!=''){ alert(response['message']); } if(response['url']!=''){ window.location=response['url']; } } }", ),array('id'=>'activebtn') ); ?> In Controller .php ------------------ public function actionactive() { $returnmessage['message']=$successmessage; $returnmessage['url']="url"; echo json_encode($returnmessage); }
Checkbox value in ajax request of yii
by Unknown
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
Ajax in Yii
by Unknown
In view.php In controller.php For More Details www.bsourcecode.com