fnReloadAjax and new fnServerParams
fnReloadAjax and new fnServerParams
ythibodeau
Posts: 6Questions: 0Answers: 0
How can I avoid this?
[code]$('#search').click( function() {
lab.fnReloadAjax('ajax/get_results.php?' +
'searchunread=' + $('#searchunread:checked').length +
'&searchabnormal=' + $('#searchabnormal:checked').length +
'&searchcritical=' + $('#searchcritical:checked').length +
'&searchcompleted=' + $('#searchcompleted:checked').length +
'&searchtoreview=' + $('#searchtoreview:checked').length +
'&searchramq=' + $('#searchramq').val() +
'&searchfile=' + $('#searchfile').val() +
'&searchrequest=' + $('#searchrequest').val());
});[/code]
There's got to be a way like when I first initiate my table, like so:
[code]
var lab = $('#module #results table').dataTable({
'fnServerParams': function(aoData) {
aoData.push({'name': 'mod', 'value': 'lab'});
}
...
[/code]
[code]$('#search').click( function() {
lab.fnReloadAjax('ajax/get_results.php?' +
'searchunread=' + $('#searchunread:checked').length +
'&searchabnormal=' + $('#searchabnormal:checked').length +
'&searchcritical=' + $('#searchcritical:checked').length +
'&searchcompleted=' + $('#searchcompleted:checked').length +
'&searchtoreview=' + $('#searchtoreview:checked').length +
'&searchramq=' + $('#searchramq').val() +
'&searchfile=' + $('#searchfile').val() +
'&searchrequest=' + $('#searchrequest').val());
});[/code]
There's got to be a way like when I first initiate my table, like so:
[code]
var lab = $('#module #results table').dataTable({
'fnServerParams': function(aoData) {
aoData.push({'name': 'mod', 'value': 'lab'});
}
...
[/code]
This discussion has been closed.
Replies
Allan