If it were me, here is what I would do:
add an event handler to the scroll event (any time there is a scroll, this function will be called).
function scrolled(e) {
var evt = e || window.event;
if (myDiv.offsetHeight - evt.scrollTop === 0) {
//call function - myDiv scrolled to the bottom
scrolledToBottom(e);
}
}
Gabriel McAdams
2010-10-18 19:29:04