Adding additional parameters to server side sumit

Adding additional parameters to server side sumit

soulicesoulice Posts: 9Questions: 2Answers: 0

I am using the example called "Submit data as JSON in the request body" from the bottom of https://datatables.net/reference/option/ajax and need to know how to add additional parameters to be sent to the server.

Answers

  • soulicesoulice Posts: 9Questions: 2Answers: 0
    edited June 2016

    Got it!
    Added the data.Thing line to

    'data': function(data) {
                        data.Thing = "123456";
                        return data = JSON.stringify(data);
                    }
    

    and then added to my DTParameters class on the server side and boom, 123456 comes through.

This discussion has been closed.