How to configure DataTables with ajax GET when live-switching dataset

How to configure DataTables with ajax GET when live-switching dataset

steverstever Posts: 2Questions: 1Answers: 0

I have an ajax function loading data into a table, according to a selected user's dataset (and which works w/out DataTables). Having added a basic implementation of DataTables, the table data is not updating correctly when changing the user (dataset).

The code is here: http://outtolaunch.com/dev/weighttracker/weighttracker.php

... and the DataTables debug code is: ufawes

How do I configure DataTables to ensure data is refreshing appropriately when requesting a different dataset? I assume this is possible without changing my ajax request (which is not using jQuery) or anything else in my js, and that this is solely a DataTables configuration issue (?)

Thank you for any suggestions,

sr

Answers

This discussion has been closed.