working with document fragments?
working with document fragments?

Hi y'all
$.fn.dataTableExt.oApi.fnAddTr() is expecting a Node. Is there a way to add a TR which is a document fragment, to a dataTable?
thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
In case someone else is looking for this. Datatables doesn't work with DocumentFragments.
That particular plug-in method doesn't work with a document fragment but that is not to say DataTables as a whole doesn't. Indeed it uses them internally.
And in fairness that method is now redundant with the new API in 1.10. Try using the
row.add()
method. I haven't died it with a document fragment, but it might just happen to work.Allan
Bummer... it doesn't work with a fragment.