Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am making a web application about an online sales system. Now, my problem is that I used datatable to make my job easier when it comes to displaying, organizing and searching the products that I have registered in my DB, I would like those records, organized by datatable, to be updated every certain time established by me. Could anyone help me??

What I have tried:

I'tried this:
(".tablas").DataTable().ajax.reload();

and some other stuffs.worthless
Posted
Updated 2-Nov-21 0:42am
Comments
Member 15413331 31-Oct-21 5:15am    
Have you tried using #tablas rather than .tablas?

1 solution

draw()[^]
JavaScript
$(".tablas").dataTable().api().draw(true);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900