ajax.reload() on jQuery slider change
ajax.reload() on jQuery slider change

How can I ajax.reload() my table (editor/serverside) on a jQuery slider change? This is my setup:
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Nobody an idea?
Can you not just call the
ajax.reload()
method in theslide
callback? Possibly best to use thestop
event orchange
.rangeSlider.on( 'change', function .... );
.Allan
It works when I define the var table; at the very top. :-) The DataTable() instance is after the slider() instance. Then the table.ajax.reload() knows the table variable.
Use
$(...).DataTable()
to create a new API instance to an existing table (or it will create a new table if there isn't one that matches the selector already).Allan
Hi Allan. Yes this was the issue. It's now working like a charm. Many thanks