So basically my problem is a seemingly simple one.
You can see it in action at http://furnace.howcode.com (please note that data is returned via Ajax, so if nothing
Maybe the following will work:
JS - see plugin below:
$.fn.scrollPaging = function (handler) {
return this.each(function () {
var $this = $(this),
$inner = $this.children().first();
$this.scroll(function (event) {
var scrollBottom = $this.scrollTop() + $this.height(),
totalScroll = $inner.height();
if (scrollBottom >= totalScroll) {
handler();
}
});
});
};
$('#col2').scrollPaging(loadMore);