Problems/ ajax query
Problems/ ajax query
Mr Boombastic
Posts: 1Questions: 0Answers: 0
in General
I have a problem when starting the plugin, I fill my table with a query to my database through ajax, then I insert my data in the html like this
$('.clientData').html(data); //i am using ajax
The problem is that the table is initially empty and the pluyin is not recognizing the data.
Replies
Yep, if you add data after the initialisation, DataTables will be unaware of it. The way to go would be to give that data to DataTables with
ajax
(example here), orajax.data
, or just supply the data withdata
(example here)Colin