2013-01-08 93 views
4

保羅愛爾蘭有一個插件infiniteScroll,我以前使用過這一點,在這種情況下,它不會爲我工作,無限滾動通過保羅愛爾蘭沒有工作

的問題是,「顯示當」事情是負請看看:

enter image description here

我試圖檢查黑客攻擊,使這項工作,我開始用的東西玩,當我摸到bufferPX,如果我嘗試使用bufferPx 2000我得到這個錯誤 - 3000或更大。

TypeError: I.join is not a function

ApplicationHelper.GroupViewMember.MainSection.find('> section.information > section.wall > section.wall_container') 
    .infinitescroll({ 
     navSelector  : "section.navigation_wall", 
     nextSelector : "section.navigation_wall a.next:last", 
     itemSelector : 'section.wall_entry', 
     dataType  : 'html', 
     bufferPx  : 100, 
     debug   : true, 
     pathParse: function(path,page){ 
      return $(this.nextSelector).attr("href"); 
     } 
    }, function(newElements, data, url){ 

}); 

的路徑是正確的,我測試過他們。

+0

你有沒有得到這個解決?我有同樣的問題,這個插件讓我瘋狂 – LeeTee

回答

2
pathParse: function(path,page){ 
    return $(this.nextSelector).attr("href"); 
} 

path: function(path,page){ 
    return $(this.nextSelector).attr("href"); 
} 
+0

嘿看到這個答案最近的一些行動。我強烈建議檢查一下ScrollMagic。 http://scrollmagic.io/examples/advanced/infinite_scrolling.html –