Wiki

Articles tagged with "ajax"X
Displaying 21-30 of 42 result(s).

Ajax form submiting in Yii

Created about a year ago by sirin kTutorials9 comments – viewed 64,188 times – ( +11 / -3 ) – version 1.1
hi guys, Here I'm going to give you a working example of ajax form submiting in Yii.

CGridView, CListView and CActiveDataProvider

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

How to render a view in Fancybox using ajax

Created about a year ago by rix.rix.How-tos1 comment – viewed 15,315 times – ( +6 ) – version 1.1
Sometimes you want to render a view in Fancybox.
tags: fancybox, ajax, views

Dynamic parent and child CGridView on single view. Using $.ajax to update child gridview via controller, after row in parent gridview was clicked.

Created about a year ago by Gerhard LiebenbergTutorials20 comments – viewed 51,715 times – ( +22 / -1 ) – version 1.1
This wiki is a step-by-step example explaining how the controller, model and the view's CGridView work together. It explains simple things - as well as more complex things that you will anyway quickly have to know. So, even if you don't use dynamic gridviews, take a morning off and thoroughly work through this tutorial. It should save you lots of struggling.

Using loginRequiredAjaxResponse to solve ajax session timeout

Created 2 years ago by RutgerHow-tos3 comments – viewed 15,943 times – ( +12 ) – version 1.1
This solution requires Yii 1.1.9 or above

Avoiding duplicate script download when using Ajax calls to render different Views

Created 2 years ago by Antonio RamirezTips5 comments – viewed 16,705 times – ( +12 / -1 ) – version 1.1
I had to partially render two types of views, depending on user selection. Wanted to display a GRID or a LIST style with an event that AJAX'ed new contents and update a layer with them.
tags: tutorial, AJAX, views

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created 2 years ago by Antonio RamirezTutorials2 comments – viewed 14,440 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.

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,693 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.

Update/delete model with CJuiDialog (works in CGridView)

Created 2 years ago by ifdatticTutorials6 comments – viewed 48,856 times – ( +15 ) – version 1.1
This is based on this article.

Using CJuiDialog to edit rows in a CGridView

Created 2 years ago by Russell EnglandTips8 comments – viewed 25,053 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.