fredwu / jquery-endless-scroll

Endless/infinite scrolling/pagination.
http://fredwu.github.com/jquery-endless-scroll/
837 stars 176 forks source link

How to add endless-scroll in table body element #54

Open ankurrai2602 opened 7 years ago

ankurrai2602 commented 7 years ago

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; } });