After closing fancybox, how to reload new data for datatable, not reload the entire parent page?
After closing fancybox, how to reload new data for datatable, not reload the entire parent page?
amidamaru
Posts: 1Questions: 0Answers: 0
I have a fancybox, it popup from a link on parent page. Content of fancybox is a form used to add new user.
I want when I press the button on the fancybox add new user, that user is updated to the database, popup closes, it will add data to the DataTable in my parent page.
My current way of doing that after the user added, popup closed and refresh the entire page, as data in Datatable will be updated.
Reference my current way: http://stackoverflow.com/questions/17606824/submit-form-on-fancybox-type-iframe-return-data-and-message-from-controller-to-p
But if the user data in user table more, then reload the entire page will slow performance. So I want to close the fancybox popup, then just reload the data in the DataTable only.
I'm newbie about php programming field. I also have recently started using DataTable, so not familiar with the technique of it. What is the source ajax, server side processing ... How can I distinguish this techniques?
I look forward to learning more techniques to handle DataTable, to be able to master it.
I'm using CodeIgniter.
So I'm very happy if you can show me how to do specific to my problem. As one such demo, thanks all.
I want when I press the button on the fancybox add new user, that user is updated to the database, popup closes, it will add data to the DataTable in my parent page.
My current way of doing that after the user added, popup closed and refresh the entire page, as data in Datatable will be updated.
Reference my current way: http://stackoverflow.com/questions/17606824/submit-form-on-fancybox-type-iframe-return-data-and-message-from-controller-to-p
But if the user data in user table more, then reload the entire page will slow performance. So I want to close the fancybox popup, then just reload the data in the DataTable only.
I'm newbie about php programming field. I also have recently started using DataTable, so not familiar with the technique of it. What is the source ajax, server side processing ... How can I distinguish this techniques?
I look forward to learning more techniques to handle DataTable, to be able to master it.
I'm using CodeIgniter.
So I'm very happy if you can show me how to do specific to my problem. As one such demo, thanks all.
This discussion has been closed.