Wiki

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

By Example: CHtml

Created 4 years ago by jonahTutorials13 comments – viewed 434,557 times – ( +98 / -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 70,012 times – ( +61 ) – 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 4 years ago by BurzumTutorials15 comments – viewed 150,967 times – ( +57 ) – version 1.1
The easiest way to update content in AJAX is to use the renderPartial method.
tags: AJAX

CGridView, CListView and CActiveDataProvider

Created about a year ago by softarkTutorials21 comments – viewed 66,380 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.

Creating a dependent dropdown

Created 5 years ago by dalipTutorials36 comments – viewed 215,878 times – ( +103 / -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.

Javascript and AJAX with Yii

Created about a year ago by Fran├žois GannazHow-tos2 comments – viewed 80,173 times – ( +39 ) – 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 4 years ago by schmunkTutorials5 comments – viewed 37,298 times – ( +26 ) – 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-tos14 comments – viewed 29,670 times – ( +22 ) – 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 2 years ago by RusAlexHow-tos9 comments – viewed 34,816 times – ( +21 ) – 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 GannazTutorials9 comments – viewed 42,357 times – ( +20 ) – 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