Wiki

Articles tagged with "ajax", sorted by ratingX
Displaying 1-10 of 51 result(s).

By Example: CHtml

Created 5 years ago by jonahTutorials15 comments – viewed 541,160 times – ( +106 / -1 ) – version 1.1
"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.

CJuiDialog for create new model

Created 3 years ago by zaccariaTutorials44 comments – viewed 78,468 times – ( +65 ) – version 1.1
In this tutorial we will learn how to realize a create interface using a dialog.

Update content in AJAX with renderPartial

Created 5 years ago by BurzumTutorials15 comments – viewed 182,805 times – ( +58 ) – version 1.1
The easiest way to update content in AJAX is to use the renderPartial method.
tags: AJAX

Creating a dependent dropdown

Created 5 years ago by dalipTutorials51 comments – viewed 251,920 times – ( +108 / -3 ) – version 1.1
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.

CGridView, CListView and CActiveDataProvider

Created 2 years ago by softarkTutorials21 comments – viewed 81,158 times – ( +45 ) – version 1.1
CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.

Javascript and AJAX with Yii

Created 2 years ago by Fran├žois GannazHow-tos2 comments – viewed 95,558 times – ( +40 ) – version 1.1
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".
tags: javascript, AJAX

How to add ajax-loading indicators

Created 5 years ago by schmunkTutorials5 comments – viewed 42,338 times – ( +27 ) – version 1.1
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.
tags: AJAX

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 3 years ago by xrxHow-tos17 comments – viewed 32,993 times – ( +23 ) – version 1.1
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.

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

Created 3 years ago by RusAlexHow-tos9 comments – viewed 39,791 times – ( +22 ) – version 1.1
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

Display an AJAX tree from your DB using CTreeView

Created 4 years ago by Fran├žois GannazTutorials10 comments – viewed 46,597 times – ( +21 ) – version 1.1
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).
tags: AJAX, CTreeView