How to put limit in data request via ajax
How to put limit in data request via ajax
jemz
Posts: 131Questions: 40Answers: 1
Hi,,I am still new for this dataTables,.I need some help please I am using Server-side processing,my problem is that what parameter I should put in my ajax to send limit for my query ?.so that i can limit 15 records every request.
here is my ajax.
$(document).ready(function() {
$('#example').dataTable( {
serverSide: true,
"ajax": "querydata.php",
"columns": [
{ "data": "id" },
{ "data": "username" },
{ "data": "lastname" }
]
} );
} );
I appreciate more inputs.
Thank you in advance.
This discussion has been closed.
Answers
Hi I solved it now,Thank you guys!
by the way I read in the manual about the parameter Draw ?but i could not understand the usage of it,can you enlighten me on this please.
Thank you in advance.