Using fnServerParams with sAjaxSource

Using fnServerParams with sAjaxSource

ladislav2ladislav2 Posts: 13Questions: 0Answers: 0
edited November 2013 in General
Is it possible to use fnServerParams and push some additional data to the query string of ajax call that is fetching data from server? If I use fnServerParams with sAjaxSource like this

[code]
"fnServerParams": function (aoData) {
aoData.push({"ddd": "ssss"})
console.log(aoData)
},
[/code]

aoData is changed, but at the end of url is only undefined.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    It is, but you need to use the name / value format as shown here: http://datatables.net/release-datatables/examples/server_side/custom_vars.html .

    Allan
This discussion has been closed.