Setting table default vals

Setting table default vals

korukyukorukyu Posts: 11Questions: 0Answers: 0
edited July 2012 in General
I have a page that contains several different tables, and rather than having them all initialized separately I'm trying to set some defaults. I guess I'm doing something wrong, but I'm not sure what it is. Here's my version on live.datatables:

http://live.datatables.net/exosaw/8

[code]
$.extend( $.fn.dataTable.defaults, {
"bSort": true,
"oLanguage":
{
"sEmptyTable": "No values found."
}
});

doOtherStuff();

function doOtherStuff()
{
var tbl = $('#example').dataTable(
{
"bPaginate": true,
"sPaginationType": "full_numbers",
"bProcessing": true,
"sDom": '<"top"flp><"controls">t<"bottom"ri>',
"bSaveState": true
});
}
[/code]

I just can't get the pagination to work, and it's baffling me. What am I doing wrong?

Thanks!
This discussion has been closed.