Accessing instance from ajax.data (possible regression)

Accessing instance from ajax.data (possible regression)

aaronfultonaaronfulton Posts: 1Questions: 1Answers: 0

I use a function for ajax.data which pull in the state of some check boxes into the server-side request. In version 1.9, when using fnServerParams, I could access the table selector from "this.selector", however when using ajax.data in 1.10 "this" does not refer to the table. As far as I can tell it impossible to work out which (of several tables on the page) I'm dealing with in the ajax request.
I've got around this by hacking the datables.js file (line 2420) and passing oSettings.oInstance as the second parameter eg. ajaxData(data, oSettings.oInstance). Is there a better way?

This discussion has been closed.