Refreshing HTML/DOM table after database update
Refreshing HTML/DOM table after database update
I've been developing a solution using data tables to display database information.
I've now added in some update code to change the values in the database for a column of information. I now need to "refresh" the datatables data to show the new information.
I write the underlying HTML table using php on page load.
I understand my options here might be:
1) somehow update the datatables display without updating the Dom/HTML?
2) refresh whole page
3) switch to Ajax and refresh without a full page refresh.
I'm not very experienced with JQuery/Ajax - unsure how much work the change from php table writing would be (I suspect significant)
Is option 1 a good way to go? Any tips on syntax to make this update?
Thanks,
Matt
I've now added in some update code to change the values in the database for a column of information. I now need to "refresh" the datatables data to show the new information.
I write the underlying HTML table using php on page load.
I understand my options here might be:
1) somehow update the datatables display without updating the Dom/HTML?
2) refresh whole page
3) switch to Ajax and refresh without a full page refresh.
I'm not very experienced with JQuery/Ajax - unsure how much work the change from php table writing would be (I suspect significant)
Is option 1 a good way to go? Any tips on syntax to make this update?
Thanks,
Matt
This discussion has been closed.