Question

I am using laravel framework, I have one index page in that I am retrieving dynamic table from another page by ajax(using div). Then now I am allowing user to edit table values so now I want to send modified table data to next php to process some actions on those values. So how can take those modified table values and how to send it to next php page by ajax or php script. And how can I assign those ajax values to php varriables.Here is the snapshot of table

Was it helpful?

Solution

There are 2 jQuery datatables packages for Laravel (that i know of) which handle this kind of thing for you. No need for HTML in AJAX responses. Im using the one by Chumper and it makes things a lot easier. You just need to provide the data in your controller or route, and add the helper to your view.

https://github.com/Chumper/Datatable

https://github.com/bllim/laravel4-datatables-package << (haven't worked with this one)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top