Warning: Non-table node initialisation (SPAN)

Warning: Non-table node initialisation (SPAN)

delphi10delphi10 Posts: 17Questions: 8Answers: 0

I have include Datatables in delphi/intraweb app.

My include table:

... ...
...

HTML template:
$(document).ready( function () {
var table = $('#example').DataTable( {
"createdRow": function( row, data, dataIndex ) { if ( data[1] == "Nixon" ) { $(row).addClass('president'); } }
});
} );

I do not understand this warning message: Non-table node initialisation (SPAN). For more information about this error, please see http://datatables.net/tn/2?

I single HTML good work this script!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,740Questions: 1Answers: 10,111 Site admin
    Answer ✓

    That suggests that the element with id="example" on your page is -tag span.

    Remember that id attributes must be unique, so if you have two elements with the same id, unpredictable things might happen. That might be the case here.

    Allan

  • delphi10delphi10 Posts: 17Questions: 8Answers: 0

    My real table id=" #DVGridResult"!

This discussion has been closed.