• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Qaulity Standards for Maximum no of items in SELECT tag

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anybody tell me what should be the maximum number of items in select t tag in JSP/HTML?
Suppose I'm giving 10,000 items, then isn't the browser will be overloaded and network utilization will be more.
Thnx in advance.
 
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's equally important is at what point the user overloads. Is it really useful to return that much data to the user?
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In such cases it may be better to provide the data in another way.
Maybe split it up in logical subgroups which the user is presented with first after which only the items belonging to that subgroup are shown.
Of course there may be no such division possible with your data, in which case you are basically suckered :roll:
 
S Santosh Kumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my organization, We've 20,000 employees. At many places, I've to give select list for selecting employee.
Is it advisable to have SELECT fields there for such a huge data.
Should I give only staffno as entry to be made ( of course not from list) ??
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think a SELECT is certainly out of the question. I would seperate the employees into logical, manageable units (as suggested in a previous post), and display these units. For instance, you may break it down by departments, divisions, branches, etc. Whatever your company, I'm sure it has some type of organizational units. Once the user selects a department, you can display a scrollable table of employees in alphabetical order, but also provide the user with the ability to search, so they can quickly find the employee they're looking for.
 
Bear Bibeault
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Or provide search filters that narrow down the results list.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in your case, take several selects. For example, split them up by department (or even finer).
Search function also helps. Let users search on department, first name and/or last name and present a separate page with all matching names (paginated if needed). User clicks a name and that gets shot into the application proper.
 
S Santosh Kumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, department wise logical separation is possible. However it will increase the screen size and activity from user end. But it seems this is the only way to get through. Thanks.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wouldn't increase screensize if you push the selection into a popup window.
Say give the user a chance to enter an employee name or number and a button. If (s)he presses the button the popup appears with your dropdowns (possibly using any entered value as search criteria).
On making a selection from the department list, the popup reloads and fills the second list with employees for that department.
On making a selection there and pressing a button, the values from the popup are stored by a piece of Javascript in the main screen (for example in that edit box and maybe a hidden field).
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would say do a double combo script
dropdown1 - dropdown2
dropdown one contains department listings or alphabetical ranges (A-D;E-G)
you post back to the server and fill the second dropdown..you can use JavaScript to fill the second one too if you do not want to post back.
Eric
 
S Santosh Kumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Eric and Jeroen for your valuable inputs.
Santosh
 
Bring out your dead! Or a tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic