Thanks Brian,
Its got worked :)
On Sep 9, 8:40 pm, Brian Schilt <[EMAIL PROTECTED]> wrote:
> You would need to compare the overall document height with the
> scrollTop position + viewport height. You could make a utility
> function that you could use in the scroll event that fires when the
> page is scrolled. When it reaches bottom the function could return
> true, signifying the user has scrolled all the way to the bottom.
>
> I haven't tested the below code, but the theory is there for you to
> start with.
>
> $(window).scroll(function(){
> if(isScrollBottom()){
> //scroll is at the bottom
> //do something...
> }
>
> });
>
> function isScrollBottom() {
> var documentHeight = $(document).height();
> var scrollPosition = $(window).height() + $(window).scrollTop();
> return (documentHeight == scrollPosition);
>
> }
>
> Brian
>
> On Sep 9, 7:20 am, Jay Jay <[EMAIL PROTECTED]> wrote:
>
> > How can we find out scrollbar position has reached at the bottom in
> > js
>
> > Thanks in adwance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---