jEditable plug-in doesn't update record

jEditable plug-in doesn't update record

zaykozayko Posts: 1Questions: 0Answers: 0
edited October 2013 in Plug-ins
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]

Replies

  • essexstephessexsteph Posts: 57Questions: 0Answers: 0
    OK, I may be missing something vital but your code in editable_ajax.php does not use the post data to change the database, it just echoes it back.

    Steph
This discussion has been closed.