Adding an Element instead of html in fnOpen?

Adding an Element instead of html in fnOpen?

shredlucshredluc Posts: 11Questions: 0Answers: 0
edited May 2011 in General
So what i would truly want to do is add a sub table that is a datatable when opening a row on an already existing datatable. But in the mean time i'm changing fnOpen in my copy from:
nNewCell.innerHTML = sHtml;
to
nNewCell.appendChild(sHtml);
where sHtml is now an Element.

Passing html is way too constraining. What do you think?

Thanks!

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    fnOpen in 1.8 (currently in beta) accepts nodes, strings and jQuery objects as the display data source: http://datatables.net/new/1.8 :-)

    Allan
This discussion has been closed.