dynamically load data in list box scroll bar comes to end
Joined: Aug 09, 2008
Hi , I have a jsp file and i display a set of list boxes in it. One of the list box contains 10000 records. So i want it to be in such a way that , initially i load it with 1000 items and when the user scrolls the list box to the end an event should be trigger and i will append the next 1000 items using ajax. Is there a way to find the scroll bar end event in html or dhtml or javascrpt and a way to load the items in the list box when the scroll bar the dragged to the end. Thanks in advance.
Joined: Nov 08, 2001
A select element does not let you know about a lot of its interactions. If you want to do laszy loading, you probably will have to build you own element out of divs.
Sounds like to me you are trying to use the wrong typw of control for the job. 10000 items sounds like a linked select or autocomplete is the right solution.