Question: I am using [Datatables](http://datatables.net) to display tabular data in my Web application, and have configured it to make use of [server-side processing](http://datatables.net/usage/server-side), i.e. query the server via AJAX for filtered data. I want to filter according to additional parameters that are specific to my application, i.e. corresponding to some user options (f.ex. via a checkbox in the UI). How do I make DataTables pass these additional filter parameters to the server?

Answer: 
The solution is to employ DataTables' [fnServerParams](http://datatables.net/usage/server-side) option, which allows you to add custom parameters to be sent in the XMLHttpRequest sent to the server. For example:

```
$(document).ready(function() {
  $('#example').dataTable({
    "bProcessing": true,
    "bServerSide": true,
    "sAjaxSource": "/IndexXhr",
    "fnServerParams": function (aoData) {
        var includeUsuallyIgnored = $("#include-checkbox").is(":checked");
        aoData.push({name: "includeUsuallyIgnored", value: includeUsuallyIgnored});
    }
  });
});

```
Finally did it after spending hours!

I will post the complete method here for everyone's help.

One needs to use `fnServerParams` option, which allows adding custom parameters to be sent in the XMLHttpRequest sent to the server. For example:

Here is the coffescript I used:

```
jQuery ->
  table = $('#logs').dataTable
    bProcessing: true
    bServerSide: true
    sAjaxSource: $('#logs').data('source')
    fnServerParams: (aoData) ->
      applicationName = $("#applicationName").val()
      aoData.push
        name: "applicationName"
        value: applicationName

      return

  $("#applicationName").on "change", ->
    table.fnDraw()
    return

```

My HTML file contains the input element with id `applicationName`. Note the `fnDraw()` element I used to enable redraw request whenever input value changes.