This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Max number of items in a listbox? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Max number of items in a listbox?" Watch "Max number of items in a listbox?" New topic
Author

Max number of items in a listbox?

Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
What is the limitation on the number of items displayed in a listbox? (the contents of the listbox is generated dynamically by a JSP)
I have seen web pages on the net used for registration containing the listbox to select a country from a list of 100 or so items.

Would it be safe to load 100 items in a listbox, with each item containing 50 chars in an IE browser? Listbox seems to be more appealing to our end users here, than a server round trip with a textbox. My concern is the browser might crash if I load many items in a listbox.

We are using IE 6.0 on Windows NT4.0.

thanks,
Vishwa
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

Moving to the HTML/Javascript forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
The only real issue is page loading times AND how long it takes the user to get to their desired item. If the person needs to get to the last item, how will it take (that is what you should worry about).

Eric
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
Eric,
I agree that the page loading with take more time, if I load 100 items in a list box.

Since the list would be sorted, scrolling up and down for a particular item in the list box wouldn't take much time for the user. Would it?...

Our other approach would be to display a pop-up child window with a list of items displayed as radio buttons (may be with pagination as well!). The User could select one of the items from this window, but this approach means more work for us -
 
 
subject: Max number of items in a listbox?
 
Similar Threads
HashTable Performance
Handle multiple requests from Internet Explorer
Is there a way to highlight a listbox items?
Reading from ListBox.
Scolling the List to specific place when key is pressed