Wiki articles tagged with "AJAX"

Showing 41-55 of 55 items.

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

Created 13 years ago by RusAlex, updated 13 years ago by 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: 73 453 times
Version: 1.1
Category: How-tos

Update/delete model with CJuiDialog (works in CGridView)

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

This tutorial will show you how to create Ajax dialog which allows to create new model, update or delete existing model. It works with simple links, CGridView button column links, adds a minimal amount of code and degrades gracefully with JavaScript turned off.

15 0
25 followers
Viewed: 77 716 times
Version: 1.1
Category: Tutorials

Using CJuiDialog to edit rows in a CGridView

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

I used Zaccarias excellent article as the base http://www.yiiframework.com/wiki/145/cjuidialog-for-create-new-model/

Solution

First follow the wiki above to create all the required code. Then make the following modifications in your...

3 1
11 followers
Viewed: 42 101 times
Version: 1.1
Category: Tips

CListView AJAX filtering

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

This tutorial shows how to filter CListView items by AJAX, and it's compatible with disabled JavaScript users
In my case this has been done to filter users list

13 0
27 followers
Viewed: 78 674 times
Version: 1.1
Category: Tutorials

Updating fields on a form with Ajax and Json

Created 13 years ago by Russell England, updated 13 years ago by 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: 96 121 times
Version: 1.1
Category: How-tos

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 13 years ago by xrx, updated 12 years ago by 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: 52 346 times
Version: 1.1
Category: How-tos

CGridView and AjaxForm Connect

Created 13 years ago by PinkBrainPlan, updated 13 years ago by 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: 27 947 times
Version: 1.1
Category: How-tos

CJuiDialog to create new model

Created 13 years ago by zaccaria, updated 8 years ago by Maurizio Domba Cerin.

In this tutorial we will learn how to realize a create interface using a dialog.

55 0
64 followers
Viewed: 167 577 times
Version: 1.1
Category: Tutorials

Ajax update

Created 14 years ago by zaccaria, updated 14 years ago by zaccaria.

Often happens to have the need of change a part of the page with ajax.

16 2
14 followers
Viewed: 58 664 times
Version: 1.1
Category: Tips
Tags: AJAX

CJuiDialog and AjaxSubmitButton

Created 14 years ago by tydeas_dr, updated 13 years ago by phazei.

Hello ppl. Even though i have a small experience with yii I though of writing this to help people which want to do something similar.

33 1
45 followers
Viewed: 128 238 times
Version: 1.1
Category: Tutorials
Tags: AJAX

Display an AJAX tree from your DB using CTreeView

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

This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).

19 0
21 followers
Viewed: 73 379 times
Version: 1.1
Category: Tutorials

Update content in AJAX with renderPartial

Created 15 years ago by Burzum, updated 12 years ago by hairylunch.

The easiest way to update content in AJAX is to use the renderPartial method.

43 0
46 followers
Viewed: 361 169 times
Version: 1.1
Category: Tutorials
Tags: AJAX

By Example: CHtml

Created 15 years ago by jonah, updated 8 years ago by glicious.

"By Example" cookbook pages will provide coding examples for many of the commonly used classes within Yii. We will try to provide as many usage examples as possible for keep these pages as helpful as possible.

79 0
74 followers
Viewed: 993 868 times
Version: 1.1
Category: Tutorials

How to add ajax-loading indicators

Created 15 years ago by schmunk, updated 12 years ago by Yang He.

With yii you're able to create ajax requests and updates easily. But most times you always want to show a loading indicatior to your user.

23 0
25 followers
Viewed: 77 181 times
Version: 1.1
Category: Tutorials
Tags: AJAX

Creating a dependent dropdown

Created 15 years ago by dalip, updated 9 years ago by Paul_Kish.

Often you'll need a form with two dropdowns, and one dropdown's values will be dependent on the value of the other dropdown. Using Yii's built-in AJAX functionality you can create such a dropdown.

83 2
92 followers
Viewed: 416 838 times
Version: 1.1
Category: Tutorials