why is there a difference and how to make them work together?
The vast majority of the documentation for this plugin indicates that you initialize it with
$('#example').dataTable();
initializes using
$('#example').DataTable();
The resultant objects differ quite a lot, and the example URL above doesn't work when you initialize with a lower-case 'D', however pretty much everything else requires the lower-case 'D' initialization
Basically, the two constructors return different objects.
dataTable constructor
var table = $(<selector>).dataTable()
dataTable is the oldschool dataTables constructor, which returns a jQuery object. This jQuery object is enriched with a set of API methods in hungarian notation format, such as fnFilter, fnDeleteRowand so on.
Examples :
table.fnDeleteRow(0); table.fnAddData(['E', 'F']);
dataTable is supported by all 1.9.x / 1.10.x versions.
DataTable constructor
var table = $(<selector>).DataTable()
The DataTable constructor was introduced in 1.10.x, and returns a huge API object with full read/write access to pages, rows, cells and more,
Example equivalences :
table.row(0).remove(); table.row.add(['E', 'F']).draw();
Combining dataTable and DataTable
If you maintain old code, or for some reason need to use the oldschool dataTable constructor, but still needs to use the new API, the jQuery object is extended (from 1.10.0) with a .api() method that returns the new API.
Example equivalences :
var table = $('#example').dataTable();
table.api().row(0).remove(); table.api().row.add(['E', 'F']).draw();
The old API like table.fnDeleteRow(0) still works.
As you see, you can do both! Initialize dataTables the old way, and use .api() when you need access to the new API.
For Details and features in new version refer to following link"
http://www.datatables.net/new/1.10
For Details and features in new version refer to following link"
http://www.datatables.net/new/1.10

