Row details assign DOM object and not html
Row details assign DOM object and not html
I'm trying to get the example from the forums to work
http://www.datatables.net/forums/discussion/2812/row-details-assign-dom-object-and-not-html/p1
var nNew = oTable.fnOpen( nTr, '' );
nNew.getElementsByTagName('td')[0].appendChild( MyDiv );
I keep getting an error:
Uncaught Error: NotFoundError: DOM Exception 8
http://www.datatables.net/forums/discussion/2812/row-details-assign-dom-object-and-not-html/p1
var nNew = oTable.fnOpen( nTr, '' );
nNew.getElementsByTagName('td')[0].appendChild( MyDiv );
I keep getting an error:
Uncaught Error: NotFoundError: DOM Exception 8
This discussion has been closed.
Replies
Allan
http://www.vprco.com/tracking/orders
if you send me an email I can send you the login
thanks
Sean
http://live.datatables.net/ipayul/edit#javascript,html
Thanks
> oTable.getElementsByTagName('td')[0].appendChild('order_details');
And right enough, getElementsByTagName is not a DataTables or jQuery API method. Do you not want something like `$('td', nNew).append( 'order details' )` ?
Allan