Reading data from AJAX created DataTable
Reading data from AJAX created DataTable
Hey guys I need some help reading information from a Datatable that I creat using the ajax functions. This is what I'm trying to do:
After the table is created and displayed on the browser, I let the user select any row and detect this row with the fnGetSelected function, after that I need to read the information on that row So I can deploy a colorbox with the information on the row he clicked.
Is there a function to read the information? And the problem is since I'm creating it through ajax the code isn't on the page source!
Thanks in advanced!
After the table is created and displayed on the browser, I let the user select any row and detect this row with the fnGetSelected function, after that I need to read the information on that row So I can deploy a colorbox with the information on the row he clicked.
Is there a function to read the information? And the problem is since I'm creating it through ajax the code isn't on the page source!
Thanks in advanced!
This discussion has been closed.
Replies
Everything you need to get started is here:
http://datatables.net/release-datatables/examples/api/row_details.html
Except of course you would modify it so that a) the row itself has the click bound to it; ditch the parts adding a new column and widget; b) show the details in a colorbox instead of in a slide-down details box.
Greg
But I think doing it in the initialization is a better and more flexible way.