Sending POST requests with dataTables
Sending POST requests with dataTables
Hi,
Is there any way to send POST request to the server through dataTables and take the return data from it ?
Something like this but using dataTable's options.
[code]function loadLogsTable()
{
jQuery.ajax({
type: "POST",
async : true,
url: "classes/classesController.php",
data: { method: "getLogsList"},
contentType : ('application/x-www-form-urlencoded'),
dataType : "html" ,
success : function(data){
$("#logData").html(data);
}
});
}[/code]
Is there any way to send POST request to the server through dataTables and take the return data from it ?
Something like this but using dataTable's options.
[code]function loadLogsTable()
{
jQuery.ajax({
type: "POST",
async : true,
url: "classes/classesController.php",
data: { method: "getLogsList"},
contentType : ('application/x-www-form-urlencoded'),
dataType : "html" ,
success : function(data){
$("#logData").html(data);
}
});
}[/code]
This discussion has been closed.