http://webdeveloperplus.com/jquery/create-a-dynamic-scrolling-content-box-using-ajax/
        function _onScroll(e) {         var el = e.element();           if 
(el.scrollTop >=
(el.scrollHeight - (el.clientHeight + 50))) {                   if 
(dataContextLength !
== el.childElements().length) {                         onDataContextChanged(); 
                }               }       }

On 15 дек, 21:35, Moo <[email protected]> wrote:
> Hi there!
>
> I found a very useful script-snippet for endless scrolling. It loads
> new content via AJAX when the page is near the bottom of the page. My
> knowledge about JavaScript and Prototype is pretty good actually, but
> I always had problems with all the measurement stuff.
>
> Here's the line of code:
>
> var nearBottomOfPage = $(window).scrollTop() > $(document).height() - $
> (window).height() - 200;
>
> How could I get that working with Prototype?
>
> Thank you very much!

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.

Reply via email to