ajax.reload() on jQuery slider change
ajax.reload() on jQuery slider change
Capamania
Posts: 233Questions: 81Answers: 5
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 theslidecallback? Possibly best to use thestopevent 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