what is the correct way to add endless-scroll in table body element.
i try it using callback but facing many issue.
like calling event when scroll up
$("#indi_screener_detail_rows").unbind('scroll');
$('#bodyElementID').endlessScroll({
fireOnce: false,
fireDelay: 1000,
loader: '',
ceaseFireOnEmpty:false,
insertAfter: '#table tr:last',
callback: function(i,j,k) {
var offset = $('#bodyElementID tr').length;
my_custom_function(true,i);//append row by ajax call in side body
return true;
}
});
what is the correct way to add endless-scroll in table body element. i try it using callback but facing many issue. like calling event when scroll up $("#indi_screener_detail_rows").unbind('scroll'); $('#bodyElementID').endlessScroll({ fireOnce: false, fireDelay: 1000, loader: '', ceaseFireOnEmpty:false, insertAfter: '#table tr:last', callback: function(i,j,k) { var offset = $('#bodyElementID tr').length; my_custom_function(true,i);//append row by ajax call in side body return true; } });