SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Mar 2006
    0 Post(s)
    0 Thread(s)

    combobox with hundreds of elements

    I have some products and I want to make groups of them.
    So the user have to select some of them.
    I was thinging to make a combobox but there may be hundreds of products and maybe it will be a problem for the page.I am thinging also of Ajax.
    I want to take opinions for the best solution.
    Thank you

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Christchurch, New Zealand
    104 Post(s)
    4 Thread(s)
    You could break the products down into groups with 5 to 15 items each, and use some kind of structure with a major category, minor category, etc.

    When the user selects an option from the major category, that gets sent to the server as a query which builds a new page for those sets of options. That's your backup, your base level of service that's provided.

    When javascript is enabled, you can improve the user experience. Instead of doing a page refresh with each choice, ajax can be used to fetch the new set of options to be chosen from instead.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts