Hi,
I'm trying to use the JQuery DataTables plugin :
I have the following code...
Which renders fine.
However, as soon as I try to access the API I just get errors...
fails with
I've tried
But that just errors saying column is not a function.
I've tried both methods as described in the API :
Nothing works? What am I doing wrong?
Thanks,
1DMF.
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
I'm trying to use the JQuery DataTables plugin :
I have the following code...
Code:
// intialise data table
oFP = $('#fp_promotions_table').dataTable({
"sDom": 'R<"H"fr>t<"F"ip>',
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"iDisplayLength": 25
});
Which renders fine.
However, as soon as I try to access the API I just get errors...
Code:
// pre-filter to show active by default
oFP.api().column(5).search( 'Active' ).draw();
oFP.api is not a function
I've tried
Code:
.[b]D[/b]ataTable(..)
oFP.column(5).search( 'Active' ).draw();
I've tried both methods as described in the API :
Nothing works? What am I doing wrong?
Thanks,
1DMF.
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music