como convierto y recibo los datos devueltos por ajax a datatable ?

como convierto y recibo los datos devueltos por ajax a datatable ?

luis_rubio20luis_rubio20 Posts: 2Questions: 2Answers: 0

$("#enviar").on('click',function()
{
var nombre = $("#nombre").val();
$("#tabla").DataTable({
destroy: true,
'ajax' : {
'url' : './cliente.php',
'data' : { 'nombre' : nombre },
'type' : 'post'
},
'order': []
});
});

Answers

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    how do I convert and receive the data returned by ajax to datatable

    The Ajax manual doc discusses how to use ajax. If this doesn't help please post more specific questions and maybe an example of the JSON response form the browser's network inspector.

    Kevin

This discussion has been closed.