This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes dynamically load data in list box scroll bar comes to end Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dynamically load data in list box scroll bar comes to end" Watch "dynamically load data in list box scroll bar comes to end" New topic
Author

dynamically load data in list box scroll bar comes to end

arun ramk
Greenhorn

Joined: Aug 09, 2008
Posts: 26
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.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

"arun dangerous",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamically load data in list box scroll bar comes to end
 
Similar Threads
IE7 drop down problem
Combobox rendering problem
Fixed length for drop-down list
Optimize JSP Page loading time - very urgent......
Adding horizontal scroll bars to list box