Adding parameter to AJAX request sent to server..

Adding parameter to AJAX request sent to server..

coyoteMikecoyoteMike Posts: 2Questions: 1Answers: 0

I may have missed this in the documentation, and if I did, I apologize - point me to the page, and I'll gladly research it. :)

No page or code linked, since it's not really a 'problem' but a 'how to do'...

I'd like to add a (custom) parameter to send back to the server (serverside processing - true) - for example:
Outside of the datatable, say, in an manager menu, have two radio boxes - 'Show Deleted Items' - Then, with all the column[i][...] and order[i] and draw fields, add, say, an show_deleted parameter. I can set the value into a JS var when the user changes the radio button, no problem - just not sure how to get that into the DataTables' AJAX call to send back to the server. The only thing I can think of currently is to use the API and change the URI used, adding the selected option as part of the URL, but not 100% that'd work.

Thoughts?
Thanks!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    Answer ✓

    Allan

  • coyoteMikecoyoteMike Posts: 2Questions: 1Answers: 0

    Holy cow, thank you. I dunno how I missed that; I must be blind at times.

    Thanks!
    -Mike

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    No worries :-). Its easy when you know how, darn near impossible if you don't!

This discussion has been closed.