jEditable plug-in doesn't update record
jEditable plug-in doesn't update record
I have a problem with jEditable plug-in. I just update row in a html table but does't update data in the database. Maybe it's common mistake but I can't find the answer. Please help!
Here is editable_ajax.php
[code]
<?php
echo $_POST['value'].' (server updated)';
?>
[/code]
Here is my page code:
[code]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
DataTables example
@import "css/demo_page.css";
@import "css/demo_table.css";
$(document).ready(function() {
var oTable = $('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sPaginationType": "full_numbers",
"iDisplayLength": 15,
"sAjaxSource": "examples_support/server_processing.php",
"fnDrawCallback" : function () {
$('#example tbody td').editable( 'examples_support/editable_ajax.php', {
"callback": function( sValue, y ) {
/* Redraw the table from the new data on the server */
oTable.fnDraw();
},
"height": "14px"
} );
}
});
});
<?php echo "123"; ?>
Test
Comment
Name
City
Country
Type
View
[/code]
Here is editable_ajax.php
[code]
<?php
echo $_POST['value'].' (server updated)';
?>
[/code]
Here is my page code:
[code]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
DataTables example
@import "css/demo_page.css";
@import "css/demo_table.css";
$(document).ready(function() {
var oTable = $('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sPaginationType": "full_numbers",
"iDisplayLength": 15,
"sAjaxSource": "examples_support/server_processing.php",
"fnDrawCallback" : function () {
$('#example tbody td').editable( 'examples_support/editable_ajax.php', {
"callback": function( sValue, y ) {
/* Redraw the table from the new data on the server */
oTable.fnDraw();
},
"height": "14px"
} );
}
});
});
<?php echo "123"; ?>
Test
Comment
Name
City
Country
Type
View
[/code]
This discussion has been closed.
Replies
Steph