Wiki articles in category How-tos tagged with "AJAX"

Showing 1-20 of 24 items.

CGridView and AjaxForm Connect

Created 15 years ago by PinkBrainPlan PinkBrainPlan, updated 15 years ago by PinkBrainPlan PinkBrainPlan.

<?php $this->widget('zii.widgets.grid.CGridView', array(

'dataProvider' => $dataprovider,
'id'=>'recipient_table',
    'selectionChanged'=>'updateEditForm',
'columns' => array(
	'rec_id',
            'org.nachname',
            'org.vorname',
            'org_id',
            array(
                'class'=>'CButtonColumn',
                'template'=>'{...
1 0
10 followers
Viewed: 29 926 times
Version: 1.1
Category: How-tos

Updating fields on a form with Ajax and Json

Created 14 years ago by Russell England Russell England, updated 14 years ago by Russell England Russell England.

I'm developing a website that has an option to look up a car's registration number via SOAP and return additional details such as make, model, colour etc.

10 0
22 followers
Viewed: 98 974 times
Version: 1.1
Category: How-tos

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created 14 years ago by RusAlex RusAlex, updated 14 years ago by Darwin Wen Darwin Wen.

With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

16 0
33 followers
Viewed: 76 774 times
Version: 1.1
Category: How-tos

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 14 years ago by xrx xrx, updated 13 years ago by xrx xrx.

Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

23 0
29 followers
Viewed: 55 003 times
Version: 1.1
Category: How-tos

How to render a view in Fancybox using ajax

Created 13 years ago by rix.rix. rix.rix., updated 13 years ago by 张 迪 张 迪.

Sometimes you want to render a view in Fancybox.

4 0
14 followers
Viewed: 33 827 times
Version: 1.1
Category: How-tos

Elementary introduction to using jQuery ajax and the yii framework

Created 13 years ago by dhimes dhimes, updated 13 years ago by François Gannaz François Gannaz.

In doing internet searches trying to learn how to incorporated ajax into web pages generated by the yii framework I noticed that there seems to be a lot of confusion. I worry that too-clever hacks will be broken in upgrades of the framework.

2 0
15 followers
Viewed: 58 337 times
Version: 1.1
Category: How-tos
Tags: AJAX

Open Dialog from ajax content

Created 13 years ago by Touzas Touzas, updated 13 years ago by Touzas Touzas.

This is the code in the View.

<?php echo CHtml::link('MyDialog', Yii::app()->createUrl('site/page'), array('class' => 'openDlg divDialog')); ?>
<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id'=>'divDialog',
	'options'=>array( 'title'=>Yii::t('Dialog Title', 'autoOpen'=>false, 'modal'=>true, 'width'=>600)));
?>
	<div class="divForForm"></div>
<?php
$this->endWidget(...
3 1
5 followers
Viewed: 25 922 times
Version: 1.1
Category: How-tos

Javascript and AJAX with Yii

Created 13 years ago by François Gannaz François Gannaz, updated 12 years ago by François Gannaz François Gannaz.

This page intends to provide an exhaustive guide of how to use Javascript (JS) in Yii. It does not explain how to learn coding in JS, but how to deal with it "the Yii way".

23 0
30 followers
Viewed: 190 969 times
Version: 1.1
Category: How-tos

Select2 Infinite Scroll With Remote Data in Yii

Created 11 years ago by IsraelAma IsraelAma, updated 11 years ago by CeBe CeBe.

I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.

3 0
5 followers
Viewed: 25 173 times
Version: 1.1
Category: How-tos

Upload image and content using AJAX and Store it in different table

Created 12 years ago by Selvakumar Kaliyappan Selvakumar Kaliyappan, updated 11 years ago by CeBe CeBe.

var formData = new FormData($("#post-form")[0]);
$.ajax({
    url: '<?php echo Yii::app()->createUrl("forumPost/uploadPost"); ?>',
    type: 'POST',
    data: formData,
    datatype:'json',
    // as...
1 0
5 followers
Viewed: 77 448 times
Version: 1.1
Category: How-tos

How to apply a layout to an AJAX update

Created 12 years ago by trond trond, updated 11 years ago by CeBe CeBe.
  1. The Main template holds the header, main navigation and footer
  2. One or more layout files holds the column setup, sub navigation etc.
  3. The view files hold the actual page content.
1 0
4 followers
Viewed: 19 555 times
Version: 1.1
Category: How-tos
Tags: AJAX, views

Take more control of CGridview and model searching (related model or another controller)

Created 12 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by CeBe CeBe.

Suppose you have an Application in Yii that manages hotels each one has many customers.

2 0
6 followers
Viewed: 46 003 times
Version: 1.1
Category: How-tos

Update a part of content using AJAX when select a GridView row

Created 12 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by CeBe CeBe.

Suppose you want to refresh a form or any content when a single row of CGridView is selected

1 0
9 followers
Viewed: 38 974 times
Version: 1.1
Category: How-tos

How to create CJui Tabs : Render partial, Ajax tabs, color tabs

Created 12 years ago by Interboy Interboy, updated 11 years ago by xJose xJose.

Hey guys, today we will show you how to make a Yii CJuitabs as example. Some feature cases such as Static tabs, render partial tabs, Ajax tabs, color tabs... You can see our code, there are simple 3 steps to make it work.

3 0
7 followers
Viewed: 39 079 times
Version: 1.1
Category: How-tos

AngularJS Frontend:Connecting it with a Yii Backend REST API.Gallery Manager Demo Application.

Created 12 years ago by drumaddict drumaddict, updated 11 years ago by Castea Castea.

For best experience,use Chrome.Other browsers may complain here and there.Sorry,no patience to make happy every freaking browser out there!

17 0
37 followers
Viewed: 109 237 times
Version: 1.1
Category: How-tos

Update CGridview row separately using ajax request

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

There are cases you want to update a record on CGridview directly

5 0
8 followers
Viewed: 27 542 times
Version: 1.1
Category: How-tos

Open bootstrap modal and load content via Ajax

Created 11 years ago by JbalTero JbalTero, updated 11 years ago by JbalTero JbalTero.

My goal here is to Open bootstrap modal and load ANY content using ajax response.

1 0
2 followers
Viewed: 65 325 times
Version: 1.1
Category: How-tos

Insert a model record using CGridview

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 19 921 times
Version: 1.1
Category: How-tos

Update specific cgridview html row after AJAX request

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

1 0
2 followers
Viewed: 26 244 times
Version: 1.1
Category: How-tos

Date Picker by examples

Created 12 years ago by Interboy Interboy, updated 10 years ago by Alfa Adhitya Alfa Adhitya.

CJuiDatePicker displays a datepicker. CJuiDatePicker encapsulates the JUI datepicker plugin.

6 0
7 followers
Viewed: 145 603 times
Version: 1.1
Category: How-tos