How can I add my custom parameters to the ajax, and remove the ones that I do not want?
How can I add my custom parameters to the ajax, and remove the ones that I do not want?
Hey, maybe this is something stupid, but I cannot found in the reference neither the examples.
Basically I would like to paginate with an String cursor, so I know that the draw is an integer and I don't want to rewrite everything
My main goal is to allow to send and receive a custom "cursor" string parameter, to handle the pagination in the google app engine datastore.
Also I really would like to be able to remove some of the data sent there, because I don't need it to do my pagination and would save some bits.
Is there a way to handle that?
Thanks in advance
Answers
I just found this link. http://datatables.net/examples/server_side/custom_vars.html
Also found how to remove parameters.
$(element).dataTable({
serverSide : true,
"ajax" : {
"url" : url,
"data" : function(d) {
d.columns = null;
d.order = null;
}
},
columns : data
});