Dynamically created table within a $.getJSON() callback failed to become a dataTable

Dynamically created table within a $.getJSON() callback failed to become a dataTable

jeromedtjeromedt Posts: 6Questions: 1Answers: 0
edited December 2013 in General
Hi all,
I'm trying to create a table dynamically after get its content using a getJSON call.
Unfortunately, after creating the table within a , the newly created table remains a "normal" table and I can't call DataTables method such as dataTable() on it.

See live code excerpt here: http://live.datatables.net/omedem/4/edit

Any help will be greatly appreciated!

Replies

  • jeromedtjeromedt Posts: 6Questions: 1Answers: 0
    I found what my issue was.
    Stupid of me after working with Datatables for year, on that new script I somehow omitted to load the the jquery.dataTables.js plugin...
    2x duh!
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    lol - easy done :-). Good to hear you have it resolved now.

    Allan
This discussion has been closed.