Wiki articles tagged with "AJAX"

Showing 21-40 of 55 items.

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

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

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

1 0
9 followers
Viewed: 37 370 times
Version: 1.1
Category: How-tos

Using loginRequiredAjaxResponse to solve ajax session timeout

Created 13 years ago by Rutger, updated 8 years ago by Rutger.

This solution requires Yii 1.1.9 or above

12 0
16 followers
Viewed: 40 735 times
Version: 1.1
Category: How-tos
10 0
15 followers
Viewed: 42 976 times
Version: all
Category: Others

Using CJuiDialog to edit rows in a CGridView

Created 14 years ago by Russell England, updated 14 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: 43 044 times
Version: 1.1
Category: Tips

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

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

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

2 0
6 followers
Viewed: 44 386 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by Kartik V, updated 11 years ago by Kartik V.

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:

1 2
41 followers
Viewed: 45 903 times
Version: 2.0
Category: FAQs

Simple Ajax popup

Created 11 years ago by Rajith R, updated 11 years ago by Rajith R.

Simple Ajax popup view with Ajax link

5 0
9 followers
Viewed: 52 585 times
Version: 1.1
Category: Tutorials

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 14 years ago by xrx, updated 13 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: 53 134 times
Version: 1.1
Category: How-tos

Elementary introduction to using jQuery ajax and the yii framework

Created 12 years ago by dhimes, updated 12 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: 56 120 times
Version: 1.1
Category: How-tos
Tags: AJAX

A Single Page with a List and a Detail

Created 8 years ago by softark, updated 8 years ago by Patrick Jones.

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.

3 0
5 followers
Viewed: 58 945 times
Version: 2.0
Category: How-tos

Ajax update

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

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

16 2
14 followers
Viewed: 59 674 times
Version: 1.1
Category: Tips
Tags: AJAX

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

Created 10 years ago by Ankit Modi, updated 6 years ago by samdark.

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

0 1
3 followers
Viewed: 62 081 times
Version: 1.1
Category: How-tos

Open bootstrap modal and load content via Ajax

Created 11 years ago by JbalTero, updated 11 years ago by JbalTero.

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

1 0
2 followers
Viewed: 63 588 times
Version: 1.1
Category: How-tos

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

Created 13 years ago by RusAlex, updated 13 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: 74 577 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by Selvakumar Kaliyappan, updated 11 years ago by CeBe.

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: 74 622 times
Version: 1.1
Category: How-tos

Display an AJAX tree from your DB using CTreeView

Created 15 years ago by François Gannaz, updated 13 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: 75 216 times
Version: 1.1
Category: Tutorials

Update/delete model with CJuiDialog (works in CGridView)

Created 13 years ago by ifdattic, updated 13 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: 78 555 times
Version: 1.1
Category: Tutorials

How to add ajax-loading indicators

Created 15 years ago by schmunk, updated 13 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: 79 031 times
Version: 1.1
Category: Tutorials
Tags: AJAX

CListView AJAX filtering

Created 14 years ago by Draga, updated 14 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: 79 319 times
Version: 1.1
Category: Tutorials

How to add a DropDown Language Picker (i18n) to the Menu

Created a year ago by JQL, updated a year ago by JQL.

Yii comes with internationalisation (i18n) "out of the box". There are instructions in the manual as to how to configure Yii to use i18n, but little information all in one place on how to fully integrate it into the bootstrap menu. This document attempts to remedy that.

1 0
1 follower
Viewed: 83 367 times
Version: 2.0
Category: How-tos