As I can load the data I receive from a post request with AJAX in a datatable, I have the following script:
$("#status").change(function () {
var respuestaAJAX = new String();
$.ajax({
type: "POST",
url: "DatosUsuarios.do",
data: {
Filtro: $("#status option:selected").text(),
Action: "Filtrar"
},
success: function (response)
{
$("#tUsuarios").footable({
"sorting": {
"enabled": true
},
"toggleSelector": ".footable-toggle",
"columns": [
{"name": "Nombre", "title": "Nombre"},
{"name": "id", "title": "id", "visible": false},
{"name": "Email", "title": "Email"},
{"name": "cuenta", "title": "cuenta", "visible": false},
{"name": "Perfil", "title": "Perfil"},
{"name": "Estado", "title": "Estado"},
{"name": "Action", "title": "Acción"}
],
"rows":
});
}
});
});
What should I put there in "rows" so that my table is loaded with that data, I have the data in JSON format in response.
Greetings.