Wiki articles tagged with "AJAX"

Showing 1-20 of 55 items.

How to display images in CJuiAutoComplete without extenstions

Created 11 years ago by Asmaa Asmaa, updated 6 years ago by samdark samdark.

I wanted to customize the CJuiAutoComplete, so that it displays a thumb image before the label like the one shown in the following image:

0 0
2 followers
Viewed: 15 017 times
Version: 1.1
Category: Tutorials

Make an ajax request to another server using JSONP

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

There are cases that you want to make an ajax request to another server and get the results.

1 0
2 followers
Viewed: 15 079 times
Version: 1.1
Category: Tips

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

Created 12 years ago by le_top le_top, updated 12 years ago by le_top 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: 16 636 times
Version: 1.1
Category: Tips

How to Display tooltp(qtip) on CGridview dynamic

Created 12 years ago by Ankit Modi Ankit Modi, updated 12 years ago by softark softark.

Hi Friends,

0 0
4 followers
Viewed: 18 364 times
Version: Unknown (update)
Category: Tips

How to apply a layout to an AJAX update

Created 11 years ago by trond trond, updated 11 years ago by CeBe CeBe.
  1. The Main template holds the header, main navigation and footer
  2. One or more layout files holds the column setup, sub navigation etc.
  3. The view files hold the actual page content.
1 0
4 followers
Viewed: 18 942 times
Version: 1.1
Category: How-tos
Tags: AJAX, views

Insert a model record using CGridview

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 19 500 times
Version: 1.1
Category: How-tos

How to display page on fancybox...using CHtml::ajaxlink with yii validation

Created 12 years ago by Ankit Modi Ankit Modi, updated 11 years ago by Rohit Suthar Rohit Suthar.

1) include the fancybox extesion otherwise fancybox js

0 0
4 followers
Viewed: 21 527 times
Version: 1.1
Category: Tutorials

Select2 Infinite Scroll With Remote Data in Yii

Created 11 years ago by IsraelAma IsraelAma, updated 11 years ago by CeBe CeBe.

I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.

3 0
5 followers
Viewed: 24 409 times
Version: 1.1
Category: How-tos

Open Dialog from ajax content

Created 12 years ago by Touzas Touzas, updated 12 years ago by Touzas 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: 25 613 times
Version: 1.1
Category: How-tos

Update specific cgridview html row after AJAX request

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

1 0
2 followers
Viewed: 25 697 times
Version: 1.1
Category: How-tos

Update CGridview row separately using ajax request

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

There are cases you want to update a record on CGridview directly

5 0
8 followers
Viewed: 27 024 times
Version: 1.1
Category: How-tos

Background task with Ajax

Created 9 years ago by Alexandre Rodichevski Alexandre Rodichevski, updated 9 years ago by Alexandre Rodichevski Alexandre Rodichevski.

This article discusses how one can run a long task in background in yiiframework 1.1 using Ajax technique.

0 0
1 follower
Viewed: 28 725 times
Version: 1.1
Category: Tutorials

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created 14 years ago by Antonio Ramirez Antonio Ramirez, updated 14 years ago by Maurizio Domba Cerin 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: 28 728 times
Version: 1.1
Category: Tutorials

CGridView and AjaxForm Connect

Created 14 years ago by PinkBrainPlan PinkBrainPlan, updated 14 years ago by PinkBrainPlan 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: 29 484 times
Version: 1.1
Category: How-tos

Popup AJAX DialogBox without any extension

Created 12 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 9 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.

5 1
6 followers
Viewed: 32 836 times
Version: 1.1
Category: How-tos

How to render a view in Fancybox using ajax

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

Sometimes you want to render a view in Fancybox.

4 0
14 followers
Viewed: 33 184 times
Version: 1.1
Category: How-tos

Yii HMVC

Created 12 years ago by ezekielnoob ezekielnoob, updated 12 years ago by ezekielnoob ezekielnoob.

what i am going to introduce is a coding style that will result into a single page generated from different requests like in the example below this makes the specific request reusable instead of just an action being accessible to the controller in which the widgets are created

2 1
10 followers
Viewed: 33 930 times
Version: Unknown (update)
Category: How-tos
9 0
15 followers
Viewed: 34 402 times
Version: 1.1
Category: Tips

How to create CJui Tabs : Render partial, Ajax tabs, color tabs

Created 12 years ago by Interboy Interboy, updated 11 years ago by xJose xJose.

Hey guys, today we will show you how to make a Yii CJuitabs as example. Some feature cases such as Static tabs, render partial tabs, Ajax tabs, color tabs... You can see our code, there are simple 3 steps to make it work.

3 0
7 followers
Viewed: 38 031 times
Version: 1.1
Category: How-tos

Batch Gridview data ajax send splitted in chunks displaying bootstrap Progress bar

Created 7 years ago by toaster toaster, updated 7 years ago by toaster toaster.

The scenario in which this wiki can be useful is when you have to send an (huge) array of model ids and perform a time consuming computation with it like linking every model to other models. The idea is to split the array into smaller arrays and perform sequential ajax requests, showing the calculation progress using a [Bootstrap Progress bar](https://www.yiiframework.com/extension/yiisoft/yii2-bo...

8 0
2 followers
Viewed: 38 066 times
Version: 2.0
Category: Tutorials