私はこのjQueryプラグインを使用しています: https ://github.com/paulirish/infinite-scroll
私は現在これを使用しています:
$container.infinitescroll({
navSelector : "#next:last",
nextSelector : "a#next:last",
itemSelector : ".veilingblok",
path: function(index) {
return "index2.html";
}
});
すべてが素晴らしい、素晴らしいプラグインで動作しますが、私は余分なコンテンツのためにリモートページを使用します。
すでに存在しているが非表示になっているページのデータをスクロールする方法はありますか?例:合計50divをロードしたい。ユーザーがページを開くと、10 divが表示され、40divが非表示になります。彼がページの一番下までスクロールすると、40個の非表示のdivのうちさらに10個が表示されます。
So i dont want to use a remote file to load the new divs. Is that possible?
Hope someone can push me in the right direction. Thanks.