Wiki articles tagged with "AJAX"

Showing 1-19 of 54 items.
Created 3 months ago by toaster, updated 2 months ago by toaster.

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

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

6 0
2 followers
Viewed: 3 325 times
Version: 2.0
Category: Tutorials
Created 2 years ago by softark, updated 2 years ago by Patrick Jones.

A Single Page with a List and a Detail

The CRUD generator of Gii has done a wonderful job for you, and you already have a list of items in the "index" page and a detailed view of a specified item in the "view" page.

1 0
4 followers
Viewed: 13 810 times
Version: 2.0
Category: How-tos
Created 2 years ago by Alexandre Rodichevski, updated 2 years ago by Alexandre Rodichevski.

Background task with Ajax

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

0 0
1 follower
Viewed: 16 823 times
Version: 1.1
Category: Tutorials
Created 3 years ago by skworden, updated 10 months ago by Yii3.

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

16 0
26 followers
Viewed: 176 672 times
Version: 2.0
Category: How-tos
Created 4 years ago by Asmaa, updated a month ago by samdark.

How to display images in CJuiAutoComplete without extenstions

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: 7 691 times
Version: 1.1
Category: Tutorials
Created 4 years ago by Ankit Modi, updated a month ago by samdark.

How to show Image view after upload and delete view image using eajaxupload extension

Hi Friends, In this tutorial you can use the eajaxupload-extension ,

0 1
4 followers
Viewed: 15 408 times
Version: 1.1
Category: How-tos
Created 4 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by Kostas Apazidis (KonApaz).

Make an ajax request to another server using JSONP

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

1 0
3 followers
Viewed: 10 008 times
Version: 1.1
Category: Tips
Created 4 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by Kostas Apazidis (KonApaz).

Update specific cgridview html row after AJAX request

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
3 followers
Viewed: 17 411 times
Version: 1.1
Category: How-tos
Created 4 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by Kostas Apazidis (KonApaz).

Insert a model record using CGridview

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 12 789 times
Version: 1.1
Category: How-tos
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript in Yii 2.0

Alternatively, inline assets (JS/CSS) can be registered at runtime from within the View. For example you can clearly simulate the ajaxLink feature using a inline javascript. Its however recommended if you can merge where possible, client code (JS/CSS) into separate JS/CSS files and loaded through the AssetBundle. Note there is no more need of a CClientScript anymore:

0 2
40 followers
Viewed: 30 456 times
Version: 2.0
Category: FAQs
Created 4 years ago by JbalTero, updated 4 years ago by JbalTero.

Open bootstrap modal and load content via Ajax

My goal here is to Open bootstrap modal and load ANY content using ajax response.

1 0
2 followers
Viewed: 51 740 times
Version: 1.1
Category: How-tos
Created 4 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by Kostas Apazidis (KonApaz).

Update CGridview row separately using ajax request

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

5 0
8 followers
Viewed: 19 420 times
Version: 1.1
Category: How-tos
Created 4 years ago by IsraelAma, updated 4 years ago by CeBe.

Select2 Infinite Scroll With Remote Data in Yii

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: 14 330 times
Version: 1.1
Category: How-tos
Created 5 years ago by Selvakumar Kaliyappan, updated 4 years ago by CeBe.

Upload image and content using AJAX and Store it in different table

var formData = new FormData($("#post-form")[0]);
$.ajax({
    url: '<?php echo Yii::app()->createUrl("forumPost/uploadPost"); ?>',
    type: 'POST',
    data: formData,
    datatype:'json',
    // as...
1 0
5 followers
Viewed: 59 422 times
Version: 1.1
Category: How-tos
Created 5 years ago by trond, updated 4 years ago by CeBe.

How to apply a layout to an AJAX update

  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: 10 909 times
Version: 1.1
Category: How-tos
Tags: AJAX, views
Created 5 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by CeBe.

Take more control of CGridview and model searching (related model or another controller)

Suppose you have an Application in Yii that manages hotels each one has many customers.

2 0
6 followers
Viewed: 34 946 times
Version: 1.1
Category: How-tos
10 0
15 followers
Viewed: 32 875 times
Version: all
Category: Others
Created 5 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by CeBe.

Update a part of content using AJAX when select a GridView row

Suppose you want to refresh a form or any content when a single row of CGridView is selected

1 0
9 followers
Viewed: 25 316 times
Version: 1.1
Category: How-tos
Created 5 years ago by Interboy, updated 3 years ago by Alfa Adhitya.

Date Picker by examples

CJuiDatePicker displays a datepicker. CJuiDatePicker encapsulates the JUI datepicker plugin.

6 0
7 followers
Viewed: 114 108 times
Version: 1.1
Category: How-tos