Data submitted when using server-side and jeditable
Data submitted when using server-side and jeditable
I used the scripts on http://jquery-datatables-editable.googlecode.com/ to combine datatables and jeditable, this works great, but because I am using large tables I wanted to run the script server-side.
I use this code to create the table:
[code]$(document).ready(function() {
var oTable = $('#ledenbestand').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "server_processing.php",
"fnDrawCallback": function () {
$('#ledenbestand tbody td').editable( 'editable_ledenbestand.php', {
"callback": function( sValue, y ) {
/* Redraw the table from the new data on the server */
oTable.fnDraw();
},
} );
}
} );
} );[/code]
This works good, but I don't get the way to process the variables in editable_ledenbestand.php...
The only variable I can find in 'editable_ledenbestand.php' is $_POST['value']. But I also need the ID of the row and the position or ID of the column.
Can anyone tell me how to get these variables when editing the table?
I use this code to create the table:
[code]$(document).ready(function() {
var oTable = $('#ledenbestand').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "server_processing.php",
"fnDrawCallback": function () {
$('#ledenbestand tbody td').editable( 'editable_ledenbestand.php', {
"callback": function( sValue, y ) {
/* Redraw the table from the new data on the server */
oTable.fnDraw();
},
} );
}
} );
} );[/code]
This works good, but I don't get the way to process the variables in editable_ledenbestand.php...
The only variable I can find in 'editable_ledenbestand.php' is $_POST['value']. But I also need the ID of the row and the position or ID of the column.
Can anyone tell me how to get these variables when editing the table?
This discussion has been closed.