Dynamicall checkboxes with fnrender
Dynamicall checkboxes with fnrender
The solution is at the end. With scripts.
hi, im makign a table out of a json string.
http://pastebin.org/980924 here my code.
It works fine, but know i want some checkboxes. Then i want a string which gives me the vlaue of contact_id where i did check the checkbox. so i can use it for deleting/editing the entries with php.
and how can i hide the contact id?
So how do i add a checkbox which gives me the contact id value?
thanks a lot
hi, im makign a table out of a json string.
http://pastebin.org/980924 here my code.
It works fine, but know i want some checkboxes. Then i want a string which gives me the vlaue of contact_id where i did check the checkbox. so i can use it for deleting/editing the entries with php.
and how can i hide the contact id?
So how do i add a checkbox which gives me the contact id value?
thanks a lot
This discussion has been closed.
Replies
http://pastebin.org/985728
See this page for more details: http://datatables.net/usage/columns#fnRender
Alternatively you could consider using the fnDrawCallback function or the fnRowCallback one. More details here: http://datatables.net/usage/callbacks
Hope this helps.
PHP Script: http://pastebin.org/1017641
I get a JSON String from my server.php Script read out of a MySQL DB. The important stuff is that the string is numeric and the objct is called aaData.
And here how i draw the table. http://pastebin.org/1017664 oObj.AData is your array where you can get your data from.
My html looks like that: http://pastebin.org/1017689
Important is that you do some around the table.
Ou and you easy get a string of your checked boxes liek that: http://pastebin.org/1017767
Hope this helps someone.
could you post your solution again please?
your links are dead.
Thanks!