Can I run DataTables 1.10.15 side-by-side with DataTables 1.9.4?
Can I run DataTables 1.10.15 side-by-side with DataTables 1.9.4?
dsteinberg
Posts: 20Questions: 6Answers: 1
I am doing work on an existing site which already uses DataTables 1.9.4. There is no plan to upgrade from legacy, as that would be a massive refactor.
How can I use DataTables 1.10.15 at the same time on the same page? It seems there are conflicts with css and javascript both.
This discussion has been closed.
Answers
You'd need to modify the source code for one of the versions so it attaches itself to something other than
$.fn.dataTable
and$.fn.DataTable()
.The only other option would be to load two different versions of jQuery and attach each version of DataTables to its own jQuery. But that is adding some serious code weight to your page.
DataTables 1.10 is backwards compatible. There are only a handful of changes which aren't directly mappable.
Allan