java - How to apply infinite scroll to repeat control that is bound to Domino Access Service? -


i have bound xp:repeat control domino access services (das) via jersey client. json mapped java object via jakcson library.

since number of documents displayed via das restricted in server document include infinite scroll function next set of documents can attached xp:repeat control.

i wonder how should this? numbers in repeat control can capture via

var numbers = getcomponent("rptpersons").getrowcount();

so can make new http call url jersey client becomes

db.nsf/api/data/collections/name/people?start=' + (numbers +1) + "&count=" + numbers

but how should 'inject' received results existing java object?

so, keep array of elements returned rest. fetch more data, need use paging feature, described in question:

db.nsf/api/data/collections/name/people?start=' + (numbers +1) + "&count=" + numbers 

your problem append new array current one, then. based on this question need make third array size of both arrays (current.length + new.length) , copy first (current) array followed second (new) array. that's it.

bear in mind, array size may huge after time, not try cache long (the viewscope preferred).


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -