[jQuery] Re: How to know when you can't scroll any further

2008-07-12 Thread fambi
Thanks guys! Special thanks Karl, it works pefectly! On Jul 10, 7:36 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > I don't think that is going to work as is, since scrollTop and > scrollHeight are DOM properties. > > You could try it this way instead: > > $('element').scroll(function() { >

[jQuery] Re: How to know when you can't scroll any further

2008-07-10 Thread Ryura
Whoops, I forgot to add [0] after the elements ;). But yours works, I would assume. On Jul 10, 11:36 am, Karl Swedberg <[EMAIL PROTECTED]> wrote: > I don't think that is going to work as is, since scrollTop and   > scrollHeight are DOM properties. > > You could try it this way instead: > > $('ele

[jQuery] Re: How to know when you can't scroll any further

2008-07-10 Thread Karl Swedberg
I don't think that is going to work as is, since scrollTop and scrollHeight are DOM properties. You could try it this way instead: $('element').scroll(function() { if (this.scrollTop + $(this).height() == this.scrollHeight) { // console.log('finished'); } }); --Karl __

[jQuery] Re: How to know when you can't scroll any further

2008-07-10 Thread Ryura
$("element").scroll(function() { if($("element").scrollTop == $("element").scrollHeight;) { //do something } }); Untested, but should work. On Jul 10, 9:18 am, fambi <[EMAIL PROTECTED]> wrote: > Thanking you guys in advance for any help/advice... > > How can I know that I've reach