Checkbox with AJAX Datatables
Checkbox with AJAX Datatables
techguy1988
Posts: 27Questions: 0Answers: 0
Hi,
I've got a bit of a problem with the AJAX data tables, what I am trying to do is I have a load of checkboxes but obviously when I press next/back it looses the "checked" state of the checkbox (as it is AJAX).
Could anyone advise me the best way of the best way to do this? When clicked on the checkbox would it be a good idea to put it in a session or something?
P.S. Datatables are great, I look forward to using them in every system I build! Good job allan!
Thanks.
I've got a bit of a problem with the AJAX data tables, what I am trying to do is I have a load of checkboxes but obviously when I press next/back it looses the "checked" state of the checkbox (as it is AJAX).
Could anyone advise me the best way of the best way to do this? When clicked on the checkbox would it be a good idea to put it in a session or something?
P.S. Datatables are great, I look forward to using them in every system I build! Good job allan!
Thanks.
This discussion has been closed.
Replies
note: PHP session variables are only useful for storing data between pages, not on a single page with dynamic content, so you'll want to use a javascript solution.
Yeah each row has a uniqueID, my problem is when I use the paging it looses the checked, checkbox!
If you're interested on what happens on the one page alone, setup an array and do a look up after prev/next is pressed.