Wiki

Articles tagged with "ajax", sorted by date (updated)X
Displaying 41-50 of 53 result(s).

Update content in AJAX with renderPartial

Updated 4 years ago by hairylunchTutorials17 comments – viewed 254,299 times – ( +60 ) – version 1.1
The easiest way to update content in AJAX is to use the renderPartial method.
tags: AJAX

How to add ajax-loading indicators

Updated 4 years ago by Yang HeTutorials5 comments – viewed 55,157 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

Updated 4 years ago by xrxHow-tos17 comments – viewed 40,089 times – ( +25 ) – 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.

Display an AJAX tree from your DB using CTreeView

Updated 4 years ago by Fran├žois GannazTutorials10 comments – viewed 56,114 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

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

Updated 5 years ago by Darwin WenHow-tos9 comments – viewed 54,233 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.

Avoiding duplicate script download when using CActiveForm on Ajax calls

Updated 5 years ago by Maurizio Domba CerinTutorials2 comments – viewed 19,397 times – ( +12 / -1 ) – version 1.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 5 years ago by ifdatticTutorials6 comments – viewed 66,448 times – ( +15 ) – version 1.1
This is based on this article.

CJuiDialog and AjaxSubmitButton

Updated 5 years ago by phazeiTutorials22 comments – viewed 101,305 times – ( +37 / -2 ) – version 1.1
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

Using CJuiDialog to edit rows in a CGridView

Updated 5 years ago by Russell EnglandTips8 comments – viewed 32,989 times – ( +4 / -1 ) – version 1.1
I have a CGridView with a list of clients/events. For each row (EventClient) I wanted a quick edit dialog.

CListView AJAX filtering

Updated 5 years ago by DragaTutorials17 comments – viewed 62,418 times – ( +17 ) – version 1.1
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