<table id="example" class="table responsive-table" ellpadding="0" cellspacing="0" border="0">
<thead>
<tr>
<th scope="col">Dominio</th>
<th scope="col">Email</th>
<th scope="col">Email 2</th>
<th scope="col">Nome</th>
<th scope="col">Empresa</th>
<th scope="col">Contacto</th>
<th scope="col">Estado</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
$(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"
} );
}
});
} );
this is the function that calls DatatablesIt looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.