Please help Meee!
Please help Meee!
I need to build an table with AJAX (JSON) Source, and I have 2 problems:
1) How Do I make the Table Refresh and Update the content with AJAX Source?
2) How do I validate/format the data ?
I really need this guys, so anything helps!
Thanks!
1) How Do I make the Table Refresh and Update the content with AJAX Source?
2) How do I validate/format the data ?
I really need this guys, so anything helps!
Thanks!
This discussion has been closed.
Replies
[code]$('#tabela_X').dataTable({
"bScrollCollapse": false,
"bAutoWidth": true,
"sAjaxSource": URL,
"sServerMethod": "POST",
"sAjaxDataProp": "callBack",
"bJQueryUI": true,
"sScrollY": "200px",
"bScrollCollapse": false,
"bAutoWidth": true,
"oLanguage": {
"sProcessing": "Aguarde, Carregando...",
"sLengthMenu": "Mostrar _MENU_ Registros por Página",
"sZeroRecords": "Nenhum Registro Encontrado!",
"sInfo": "Mostrando de _START_ até _END_ de _TOTAL_ Registros ",
"sInfoEmpty": "Nenhum Registro Encontrado",
"sInfoFiltered": "( Filtrado de _MAX_ Registros )",
"sSearch": "Pesquisar",
"oPaginate": {
"sFirst": "Primeira",
"sPrevious": "Anterior",
"sNext": "Próxima",
"sLast": "Última"
}
}
});[/code]
It's something like this That I need - But I try this examples and Did'nt work:
http://datatables.net/forums/discussion/858/fnreloadajax/p1
http://datatables.net/forums/discussion/6617/trying-to-use-fnreloadajax-to-automatically-refresh-the-table/p1