Setting table default vals
Setting table default vals
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!
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.