jQuery: The Write Less, Do More JavaScript Library

How can we find out scrollbar position has reached at the bottom in js

View: New views
2 Messages — Rating Filter:   Alert me  

How can we find out scrollbar position has reached at the bottom in js

by Jay Jay-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


How can we find out scrollbar position has reached at the bottom in
jquery?
I have added a div and set an attribute overflow, but I couldn't get
the on scroll functionality for the the particular div's onsroll event

I have given it like this

$('#dir-listing-inner').scroll(function(){
if(Util.isScrollBottom()){
  $.ajax({
         url: pname.convertURL('front/page'),
         success:(function(results){
         $("#results").append(results); //correct one
         })
       });
 }
});

<div id="dir-listing-inner">
Blah blah Blah blah Blah blah
Blah blah
Blah blah
Blah blah
Blah blah
</div>

#dir-listing-inner{
width:860px;
height:440px;
overflow-x:hidden;
overflow-y:auto;
}

Can you please help me to sort it out

Thanks in advance..

cheers

joban

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery Development" group.
To post to this group, send email to jquery-dev@...
To unsubscribe from this group, send email to jquery-dev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How can we find out scrollbar position has reached at the bottom in js

by Ca-Phun Ung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 20, 2008 at 6:05 PM, Jay Jay <jobanjohn@...> wrote:

How can we find out scrollbar position has reached at the bottom in
jquery?



--
Ca-Phun Ung
+ http://yelotofu.com
+ css, django, hongkong, html, javascript, php

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery Development" group.
To post to this group, send email to jquery-dev@...
To unsubscribe from this group, send email to jquery-dev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---