Change Parameters Before Ajax Reload

Change Parameters Before Ajax Reload

bakbuzbakbuz Posts: 1Questions: 1Answers: 0

How to change additional paramters before ajax reload?

Code:

if ($.fn.DataTable.isDataTable(elementId) === true) {

var table = $(elementId).DataTable();

console.log(table.ajax.params());

table.ajax.params().PARAMETERS = additionalParameters.PARAMETERS;

console.log(table.ajax.params());

table.ajax.reload(); // not work

return false;

}

This discussion has been closed.