Closed obfuscurity closed 12 years ago
Something like this should work:
$(window).scroll(function() {
if($(window).scrollTop() + $(window).height() == $(document).height()) {
// retrieve more graphs from server
// append graphs to div.graphs
}
});
Once the server notifies us we have no more rows we should probably unbind that event.
Fixed.
https://github.com/obfuscurity/descartes/commit/b2fd15d621a591760b99176e5278f6137a9a853d https://github.com/obfuscurity/descartes/commit/b47a0726391a5d45537471fce60250a8619911b4 https://github.com/obfuscurity/descartes/commit/fd45072f7e015478ea9749a78b095e46a18a08d6 https://github.com/obfuscurity/descartes/commit/c324adfd66245130f1733fc169e2b78ba4ff296b
Probably should use infinite scrolling.