CodeIgniter Forums

Full Version: Datatables Refresh After delete
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
Hi thanks for the library I like it. I am new on this one. can some one help me how will I edit the data then refresh the table after done editing.

El Forum

[eluser]InsiteFX[/eluser]
Code:
redirect('controller_name', 'refresh');

El Forum

[eluser]Unknown[/eluser]
Hi InsiteFX but doing that will refresh the entire page not the table.

El Forum

[eluser]InsiteFX[/eluser]
The MySQL database will refresh the table its self. I you need the table refreshed in your application then you need to re-run your controller that loads the table.

El Forum

[eluser]ivantcholakov[/eluser]
@dyjathan

How do you edit data - on a separate page or within a pop-up dialog?
Do you use server-side processing?
Do you have some knowledge about Datatables javascript API? I mean features like table redraw, and saving state? What version of the API do you use - the old dataTables or the new one DataTables?

You are asking about very specific things in this forum. I think, the Datatables site is very well documented, it has many live examples that help you to figure what to do.

Edit: My remarks are in case if you are talking about http://datatables.net/