Wiki

Articles tagged with "ajax", sorted by date (updated)X
Displaying 11-20 of 26 result(s).

Update content in AJAX with renderPartial

Updated 10 months ago by hairylunchTutorials8 comments – viewed 86,288 times – ( +49 )
The easiest way to update content in AJAX is to use the renderPartial method.
tags: AJAX

How to add ajax-loading indicators

Updated 10 months ago by Yang HeTutorials5 comments – viewed 24,396 times – ( +25 )
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

Creating a dependent dropdown

Updated 10 months ago by Yang HeTutorials19 comments – viewed 138,278 times – ( +84 / -2 )
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.
tags: AJAX

Avoiding rendering entire page when using CGridView and CListView via AJAX

Updated 11 months ago by xrxHow-tos13 comments – viewed 22,196 times – ( +20 )
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.

Display an AJAX tree from your DB using CTreeView

Updated 12 months ago by François GannazTutorials9 comments – viewed 26,852 times – ( +20 )
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

Using loginRequiredAjaxResponse to solve ajax session timeout

Updated about a year ago by RutgerHow-tos3 comments – viewed 9,122 times – ( +12 )
This solution requires Yii 1.1.9 or above

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

Updated about a year ago by Darwin WenHow-tos8 comments – viewed 23,695 times – ( +16 )
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

Avoiding duplicate script download when using CActiveForm on Ajax calls

Updated about a year ago by Maurizio DombaTutorials2 comments – viewed 9,936 times – ( +11 / -1 )
Sometimes the active form we wish to use to edit/add a new element on our database is too small and we believe that is much better to use an AJAX'ed dialog/slide form rather than reloading the page to just display one or two fields.

Update/delete model with CJuiDialog (works in CGridView)

Updated about a year ago by ifdatticTutorials6 comments – viewed 31,129 times – ( +14 )
This is based on this article.

CJuiDialog and AjaxSubmitButton

Updated about a year ago by phazeiTutorials18 comments – viewed 59,766 times – ( +32 / -2 )
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.
tags: AJAX