Ajax reload doesn't refresh my table
Ajax reload doesn't refresh my table
flashnet69
Posts: 2Questions: 1Answers: 1
My table is loded correctly in ajax.
When I reload my table, ajax request is done well but the data will not load in the table.
There are marked " Processing" .
There is no JS errors...
Do you have an idea about my problem ? Thanks for help
var table_list = $('#table').DataTable({
"processing": true,
"serverSide": true,
"ajax":{
url :params.baseurl + "/reservations/list.json",
},
"columns": [
{data: "List.id"},
{data: "List.nom"},
{data: "List.date"},
{data: "List.heure"},
{data: "List.client_nom"},
{data: "List.nb_joueurs"},
{data: "List.prix_total"},
{data: "List.status"}
]
});
$(document).on('change', '#ListSearch', function(e){
e.preventDefault();
table_list.ajax.reload();
});
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I solved my problem, the format was not good in my json source