Difference between #4 and #5 of
Update a part of content using AJAX when select a GridView row

Revision #5 has been created by Kostas Apazidis (KonApaz) on Dec 3, 2013, 3:35:27 PM with the memo:

-
« previous (#4) next (#6) »

Changes

Title unchanged

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

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

update, block, content, AJAX, select, GridView, row

Content changed

[...]
var keyId = $.fn.yiiGridView.getSelection(grid_id);
keyId = keyId[0]; //above function returns an array with single item, so get the value of the first item

$.ajax({
url: '<?php echo $this->createUrl('PartUpdate'); ?>',
data: {
<?php id: keyId ?>},
type: 'GET',
success: function(data) {
$('#part-block').html(data);
}
});
[...]
1 0
9 followers
Viewed: 35 483 times
Version: 1.1
Category: How-tos
Last updated by: CeBe
Created on: Dec 3, 2013
Last updated: 10 years ago
Update Article

Revisions

View all history