Multiple tables on one page, sort/search only working in the first table
Multiple tables on one page, sort/search only working in the first table
richardsonjm
Posts: 1Questions: 0Answers: 0
Have three datatables on one page. The tables look right, but sort/search only working in the first of the tables.
Environment is rails 3.2. Think it probably has something to do with my coffeescript below.
Thanks in advance for any help.
Cheers,
John
[code]
jQuery ->
$('#reviews').dataTable
sPaginationType: "full_numbers"
bJQueryUI: true
"aoColumns": [ null,
null,
null,
{ "bSortable": false },
{ "bSortable": false },
{ "bSortable": false }
]
jQuery ->
$('#candidates').dataTable
sPaginationType: "full_numbers"
bJQueryUI: true
"aoColumns": [ null,
null,
null
]
jQuery ->
$('#reviewers').dataTable
sPaginationType: "full_numbers"
bJQueryUI: true
"aoColumns": [ null,
null,
null
]
[/code]
Environment is rails 3.2. Think it probably has something to do with my coffeescript below.
Thanks in advance for any help.
Cheers,
John
[code]
jQuery ->
$('#reviews').dataTable
sPaginationType: "full_numbers"
bJQueryUI: true
"aoColumns": [ null,
null,
null,
{ "bSortable": false },
{ "bSortable": false },
{ "bSortable": false }
]
jQuery ->
$('#candidates').dataTable
sPaginationType: "full_numbers"
bJQueryUI: true
"aoColumns": [ null,
null,
null
]
jQuery ->
$('#reviewers').dataTable
sPaginationType: "full_numbers"
bJQueryUI: true
"aoColumns": [ null,
null,
null
]
[/code]
This discussion has been closed.
Replies
Are there any console messages logged when you attempt to use the 2nd and 3rd tables? Maybe post a link to your page so the JS is exposed to the community.