Bing image search paging - infinite scroll

别来无恙 提交于 2019-11-30 04:05:12

Here's an article about that technology :

Eliminate paging results by using JavaScript (ala DZone) : Using Javascript, prototype and PHP.

After some searching and reading I found this very good site:

http://www.infinite-scroll.com/

It includes downloadable WordPress and jQuery -plugins and also explains pros/cons of using "Infinite scroll/autopagerize/unpaginate/endless pages"

Sample pseudo/jQuery code to load more data when user has scrolled all the way to the bottom:

$(window).scroll(function(){
        if  ($(window).scrollTop() == $(document).height() - $(window).height()){
           loadMoreRows();
        }
});

This feature is often called "infinite scrolling". Searching for infinite scroll javascript turns up a number of articles/posts on how to do this. Some of the more interesting ones:

Today I found a jQuery plugin that does the same scroll as Bing/Live Search:

http://blog.yctin.com/archives/jquery-plugins-ajaxscroll/

It was designed to remove the need for Next/Previous buttons.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!