'oSettings.nTable.parentNode is null' when .clone()ing a dataTable
'oSettings.nTable.parentNode is null' when .clone()ing a dataTable
tr333
Posts: 12Questions: 0Answers: 0
I'm attempting to un-dataTable a table, to get a straight table element without the dataTable enhancements. I was trying to do this by .clone()ing the dataTable and then running .fnDestroy() on the clone but I'm getting the error 'oSettings.nTable.parentNode is null' whenever I attempt this. If you look at http://live.datatables.net/emeqoz/edit, you will see the error appearing in the browser's JS console.
I'm testing on Firefox with the latest dataTables nightly.
Is there a different method I should be using to get a "clean" copy/clone of the table?
I'm testing on Firefox with the latest dataTables nightly.
Is there a different method I should be using to get a "clean" copy/clone of the table?
This discussion has been closed.
Replies
Allan
Ultimately it might be nice to have a 'clone' API plug-in method for DataTables in future. Added to the to-do list :-)
Allan