Adding non-database items to server-side DataTable
Adding non-database items to server-side DataTable
PixelElephant
Posts: 2Questions: 0Answers: 0
I have a DataTable that I would like some of the elements to be non-database items.
Here is my table:
[code]
Details
First Name
Last Name
Delete
[/code]
Here is my DataTable:
[code]
$(document).ready(function(){
oTable = $('#oTable').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": 'GetInfo.php'
});
});
[/code]
I am using the default PHP script that comes with DataTables.
I would like First Name and Last Name columns to be populated from the database (serverside) and Details and Delete columns will just have buttons in them. This seems like it should be easy to do, but I can't figure it out.
Here is my table:
[code]
Details
First Name
Last Name
Delete
[/code]
Here is my DataTable:
[code]
$(document).ready(function(){
oTable = $('#oTable').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": 'GetInfo.php'
});
});
[/code]
I am using the default PHP script that comes with DataTables.
I would like First Name and Last Name columns to be populated from the database (serverside) and Details and Delete columns will just have buttons in them. This seems like it should be easy to do, but I can't figure it out.
This discussion has been closed.
Replies
Allan
Thanks for DataTables - it is really awesome!