upgrading from 1.9 to 1.10.6 and it seems like I do NOT have the new api method names?
upgrading from 1.9 to 1.10.6 and it seems like I do NOT have the new api method names?
rstudner
Posts: 21Questions: 10Answers: 0
a) I am 100% certain i'm not loading datatables 1.9 hah.
b) if I do:
var someTable = $("#table").dataTable();
I can call .fnClearTable() on it, but if I do someTable.clear() I get method undefined.
if I do
someTable.rows.add([ ] ); I get undefined.
is there some flag I need to flip to 'enable' the newly named API?
This discussion has been closed.
Answers
Eee gads.
is it because I did .dataTable() vs .DataTable()?
is that a thing :)?
Okay, so that was it.
So -- question. if I want to use fnReloadAjax and I want to use .Datatables
How does that work?
.dataTable() vs .DataTable() is documented.
https://www.datatables.net/reference/api/
fnReloadAjax is deprecated.
http://www.datatables.net/plug-ins/api/fnReloadAjax
I would suggest using
ajax.reload()
rather thanfnReloadAjax
as that ability is now built into the core API.This is actually noted in the fnReloadAjax documentation :-).
Allan