Should row.id() show "undefined"?

Should row.id() show "undefined"?

mschumacher777mschumacher777 Posts: 8Questions: 6Answers: 1

Below is the link to the live.datatables of my example that I'm trying to get working, but having issues with the "jQuery('#messageRows tbody')" section, as the console.log shows my debugs.

I'm wondering is the console.log("3.1 Yes, made it here " + row.id()); should be showing this "3.1 Yes, made it here undefined" in the console?

Is it possible that the row truly doesn't have an id, but I do have a row?

If that is the case, then why does this code row.child( format(row.data()) ).show(); cause this error:
"SyntaxError: Illegal break statement
at HTMLTableCellElement.<anonymous> (http://live.datatables.net/runner:80:42)
at HTMLTableSectionElement.dispatch (http://code.jquery.com/jquery-1.11.3.min.js:4:8549)
at HTMLTableSectionElement.r.handle (http://code.jquery.com/jquery-1.11.3.min.js:4:5252)"

This link

This question has an accepted answers - jump to answer

Answers

  • mschumacher777mschumacher777 Posts: 8Questions: 6Answers: 1

    I'm further than above and I believe I've answered my question: "Undefined" is like a null. My issue now is that I'm trying to call the method "format", but fails with this latest iteration.

    http://live.datatables.net/huwudifu/6/edit?

  • mschumacher777mschumacher777 Posts: 8Questions: 6Answers: 1
    Answer ✓

    Never mind - figured it all out - issue was I did NOT have the function Format included in the one JQuery - which caused the issue! Now it is working!!!

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    Thanks for posting back - great to hear you've got it working now!

    Allan

This discussion has been closed.