.scroll is called when a column header is clicked to change sorted order.
.scroll is called when a column header is clicked to change sorted order.
Rawrgulmuffins
Posts: 2Questions: 0Answers: 0
I do not believe this is intended behavior. When a column header is clicked it activates jqueries .scroll event when the selected element is div.dataTables_scrollBody.
[code]
var limbo_queue = $('#queue').dataTable( {
"sDom": "ltSi",
"bScrollInfinite": true,
"sScrollY": "466px",
"aoColumns": [
{ "sType": "numeric-html" },
null,
null,
null,
null,
null,
null,
null,
null
]
} );
$('div.dataTables_scrollBody').scroll(function(){
alert("I'm called!")
})[/code]
I'm running this with datatabels.js 1.9.4 and bootstrap 2.3.2.
[code]
var limbo_queue = $('#queue').dataTable( {
"sDom": "ltSi",
"bScrollInfinite": true,
"sScrollY": "466px",
"aoColumns": [
{ "sType": "numeric-html" },
null,
null,
null,
null,
null,
null,
null,
null
]
} );
$('div.dataTables_scrollBody').scroll(function(){
alert("I'm called!")
})[/code]
I'm running this with datatabels.js 1.9.4 and bootstrap 2.3.2.
This discussion has been closed.