Jeditable with Server Side processing
Jeditable with Server Side processing
Hum... i'm not able to save the data, I can do it without server side processing, but now I need the server side..
Anyone can help me? :s
[code]
Dominio
Email
Email 2
Nome
Empresa
Contacto
Estado
[/code]
this is my table code...
[code]
$(document).ready(function() {
var oTable = $('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "../listagem/listar_manuais.php",
"sPaginationType": "full_numbers",
"fnDrawCallback": function () {
$('td', this.fnGetNodes()).editable( 'SaveToFile.php', {
"callback": function( sValue, y ) {
var aPos = oTable.fnGetPosition( this );
oTable.fnUpdate( sValue, aPos[0], aPos[1] );
},
"submitdata": function ( value, settings ) {
return { "row_id": this.parentNode.getAttribute('id') };
},
"height": "14px"
} );
}
});
} );
[/code]
this is the function that calls Datatables
And the server side is the original one, only needed to edit the $aColumns, and the basic stuff...
Any1 can help me? :s I can double click, edit, but I needed to know how I manage to save them if I don't have an ID on the
Thanks for the help, and sorry if anything on this post is wrong ..
Anyone can help me? :s
[code]
Dominio
Email 2
Nome
Empresa
Contacto
Estado
[/code]
this is my table code...
[code]
$(document).ready(function() {
var oTable = $('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "../listagem/listar_manuais.php",
"sPaginationType": "full_numbers",
"fnDrawCallback": function () {
$('td', this.fnGetNodes()).editable( 'SaveToFile.php', {
"callback": function( sValue, y ) {
var aPos = oTable.fnGetPosition( this );
oTable.fnUpdate( sValue, aPos[0], aPos[1] );
},
"submitdata": function ( value, settings ) {
return { "row_id": this.parentNode.getAttribute('id') };
},
"height": "14px"
} );
}
});
} );
[/code]
this is the function that calls Datatables
And the server side is the original one, only needed to edit the $aColumns, and the basic stuff...
Any1 can help me? :s I can double click, edit, but I needed to know how I manage to save them if I don't have an ID on the
Thanks for the help, and sorry if anything on this post is wrong ..
This discussion has been closed.