[Proto-Scripty] Re: Recode jQuery expression in the prototype way
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 stuhlm...@fifty-nine.de 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 prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Recode jQuery expression in the prototype way
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(); } } } -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/fmlKaZxCzMMJ. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Re: Recode jQuery expression in the prototype way
oh my carp... dude's, thank you both I love this. On Thu, Dec 15, 2011 at 11:30 PM, buda www...@pochta.ru wrote: http://webdeveloperplus.com/**jquery/create-a-dynamic-** scrolling-content-box-using-**ajax/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 + 200))) { //load with ajax some html and append to element } } -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/4NQ5VfaQV-UJ. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- 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 prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.