Yii Ajax Submit Button Tutorials

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 page reload. This post will help you to under stand AjaxSubmitButton instead of submitButton in yii.ajaxSubmitButton With Form <div class="form"> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'user-form', 'enableAjaxValidation'=>false, )); ?> <div class="row"> <?php echo $form->labelEx($model,'companyname'); ?> <?php echo $form->textField($model,'companyname', […]... Read More »

Yii Ajax

Ajax Submit ButtonAjax ButtonAjax LinkAjax Support Ajax Submit ButtonAjax submit button can submit the current form in POST method. public static string ajaxSubmitButton( string $label, mixed $url, array $ajaxOptions=array ( ), array $htmlOptions=array ( ) ) $lable – the button label$url – the URL for the AJAX request. If empty, it is assumed to be the current URL.$ajaxOptions – data, success, update, replace,etc..;$htmlOptions – add HTML attributes here ex. name, id […]... Read More »