Wiki articles tagged with "AJAX"

Showing 1-20 of 48 items.

Ajax update

Created 10 years ago by zaccaria, updated 10 years ago by zaccaria.

Often happens to have the need of change a part of the page with ajax.

16 2
14 followers
Viewed: 54 468 times
Version: 1.1
Category: Tips
Tags: AJAX

CGridView and AjaxForm Connect

Created 10 years ago by PinkBrainPlan, updated 10 years ago by PinkBrainPlan.

<?php $this->widget('zii.widgets.grid.CGridView', array(

'dataProvider' => $dataprovider,
'id'=>'recipient_table',
    'selectionChanged'=>'updateEditForm',
'columns' => array(
	'rec_id',
            'org.nachname',
            'org.vorname',
            'org_id',
            array(
                'class'=>'CButtonColumn',
                'template'=>'{...
1 0
10 followers
Viewed: 25 039 times
Version: 1.1
Category: How-tos

Updating fields on a form with Ajax and Json

Created 10 years ago by Russell England, updated 10 years ago by Russell England.

I'm developing a website that has an option to look up a car's registration number via SOAP and return additional details such as make, model, colour etc.

10 0
22 followers
Viewed: 65 225 times
Version: 1.1
Category: How-tos

CListView AJAX filtering

Created 10 years ago by Draga, updated 10 years ago by Draga.

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

13 0
27 followers
Viewed: 75 029 times
Version: 1.1
Category: Tutorials

Using CJuiDialog to edit rows in a CGridView

Created 10 years ago by Russell England, updated 10 years ago by Russell England.

I used Zaccarias excellent article as the base http://www.yiiframework.com/wiki/145/cjuidialog-for-create-new-model/

Solution

First follow the wiki above to create all the required code. Then make the following modifications in your...

3 1
11 followers
Viewed: 38 721 times
Version: 1.1
Category: Tips

CJuiDialog and AjaxSubmitButton

Created 11 years ago by tydeas_dr, updated 9 years ago by phazei.

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.

33 1
45 followers
Viewed: 113 486 times
Version: 1.1
Category: Tutorials
Tags: AJAX

Update/delete model with CJuiDialog (works in CGridView)

Created 9 years ago by ifdattic, updated 9 years ago by ifdattic.

This tutorial will show you how to create Ajax dialog which allows to create new model, update or delete existing model. It works with simple links, CGridView button column links, adds a minimal amount of code and degrades gracefully with JavaScript turned off.

15 0
25 followers
Viewed: 74 014 times
Version: 1.1
Category: Tutorials

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created 9 years ago by Antonio Ramirez, updated 9 years ago by Maurizio Domba Cerin.

The only thing required is simple, we just need to create a view that will be partially rendered by a call to a controller (using renderPartial) and make sure that we process output -setting to true the parameter on the function. Everything will work as expected but...

11 1
9 followers
Viewed: 23 849 times
Version: 1.1
Category: Tutorials

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

Created 9 years ago by RusAlex, updated 9 years ago by Darwin Wen.

With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

16 0
33 followers
Viewed: 67 877 times
Version: 1.1
Category: How-tos

Display an AJAX tree from your DB using CTreeView

Created 11 years ago by François Gannaz, updated 9 years ago by François Gannaz.

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).

19 0
21 followers
Viewed: 66 870 times
Version: 1.1
Category: Tutorials

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 10 years ago by xrx, updated 8 years ago by xrx.

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.

23 0
29 followers
Viewed: 48 287 times
Version: 1.1
Category: How-tos

How to add ajax-loading indicators

Created 11 years ago by schmunk, updated 8 years ago by Yang He.

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.

23 0
25 followers
Viewed: 67 707 times
Version: 1.1
Category: Tutorials
Tags: AJAX

Update content in AJAX with renderPartial

Created 11 years ago by Burzum, updated 8 years ago by hairylunch.

The easiest way to update content in AJAX is to use the renderPartial method.

43 0
47 followers
Viewed: 299 194 times
Version: 1.1
Category: Tutorials
Tags: AJAX

How to render a view in Fancybox using ajax

Created 8 years ago by rix.rix., updated 8 years ago by 张 迪.

Sometimes you want to render a view in Fancybox.

4 0
14 followers
Viewed: 28 233 times
Version: 1.1
Category: How-tos

Elementary introduction to using jQuery ajax and the yii framework

Created 8 years ago by dhimes, updated 8 years ago by François Gannaz.

In doing internet searches trying to learn how to incorporated ajax into web pages generated by the yii framework I noticed that there seems to be a lot of confusion. I worry that too-clever hacks will be broken in upgrades of the framework.

2 0
15 followers
Viewed: 48 408 times
Version: 1.1
Category: How-tos
Tags: AJAX
9 0
15 followers
Viewed: 28 700 times
Version: 1.1
Category: Tips

Open Dialog from ajax content

Created 8 years ago by Touzas, updated 8 years ago by Touzas.

This is the code in the View.

<?php echo CHtml::link('MyDialog', Yii::app()->createUrl('site/page'), array('class' => 'openDlg divDialog')); ?>
<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id'=>'divDialog',
	'options'=>array( 'title'=>Yii::t('Dialog Title', 'autoOpen'=>false, 'modal'=>true, 'width'=>600)));
?>
	<div class="divForForm"></div>
<?php
$this->endWidget(...
3 1
5 followers
Viewed: 22 006 times
Version: 1.1
Category: How-tos

CGridView: Adding behaviors from configuration, and template items from behaviors to CGridView

Created 8 years ago by le_top, updated 8 years ago by le_top.

Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.

3 0
3 followers
Viewed: 13 030 times
Version: 1.1
Category: Tips

CGridView, CListView and CActiveDataProvider

Created 8 years ago by softark, updated 7 years ago by softark.

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.

26 0
33 followers
Viewed: 138 108 times
Version: 1.1
Category: Tutorials

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

Created 9 years ago by Gerhard Liebenberg, updated 7 years ago by Gerhard Liebenberg.

Many desktop programmers are used to having dynamic forms, where clicking on a record in a parent sub-form, updates another sub-form with the child records. While having many levels of nested sub-forms in a single view might not be such a good idea for a web application, I thought doing it one level deep might be interesting and useful. But, instead of sub-forms I used CGridViews.