So, I\'ve got some data tossed in a div. It\'s split up into chunks by date. It scrolls horizontally with the use of jQuery and the mousewheel plugin.
I need to fire
Hey, I've prepared a page for you with the implementation. You can see how to detect the end of scrolling area with jQuery.
For the document as a whole you must detect in javascript whether .scrollTop has become equal to .scrollHeight. With jQuery it would be to detect:
if ( $(document).scrollTop() == ( $(document).height() - $(window).height() ) {
// Do something here ...
}
The same is done for width. Have a look on example with div here.