Dinamic created tables with ajax, set it to datatables

Dinamic created tables with ajax, set it to datatables

SurtidoSurtido Posts: 5Questions: 0Answers: 0
edited August 2010 in General
Hi,

i have a layout, with 3 zones, on some zones i am adding TABLES throught jQuery .load() method.(not adding it with js, calling to a php who dinamically creates it).
On the .load() callback i am calling
jQuery('.datatables').dataTable();
but it says that is not possible to re-initialize, because i already called it on the first load so it does not work when adding new tables.
What's the way to do it? I was looking for a refresh datatable, etc, but i can't make it work.
This discussion has been closed.