Need to create a table based on JavaScript array.
Need to create a table based on JavaScript array.
I need to recreate this http://i.imgur.com/53hfvd6.png using DataTables.
Using Javascript, I can get all groups, all users and all users within each group. Using DataTables is it possible to create what I have in the image? I need a way to automatically track which groups users belong to and I think DataTables can really help, I'm just not sure how to do it yet. Any help would be appreciated.
Also, I noticed that the html structure of the table needs to be created first and the plugin doesn't create the table automatically? Is there any way around that?
Using Javascript, I can get all groups, all users and all users within each group. Using DataTables is it possible to create what I have in the image? I need a way to automatically track which groups users belong to and I think DataTables can really help, I'm just not sure how to do it yet. Any help would be appreciated.
Also, I noticed that the html structure of the table needs to be created first and the plugin doesn't create the table automatically? Is there any way around that?
This discussion has been closed.
Replies
Regarding creating a table - DataTables will do that for you:
http://datatables.net/release-datatables/examples/data_sources/js_array.html
Allan