Drop down list (combo box) limits

This is a discussion on Drop down list (combo box) limits within the Tech Board forums, part of the Community Boards category; Hi there. Is there a limit in the amount of rows that can be placed in a combo box in ...

  1. #1
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765

    Drop down list (combo box) limits

    Hi there.

    Is there a limit in the amount of rows that can be placed in a combo box in a HTML age in internet explorer?

    We are having som probplems @ work and this is the only answer that I can come up with.

    Can anyone please advise?

    Thanks in advance.
    The knack of flying is learning to throw yourself at the ground and miss.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    It would have to be a pretty large amount of data. What's your code?

    And this belongs on the Tech board

  3. #3
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    We use a product called FYI by Identitech/Global 369. We use their components (integration server). We just create the form and and link it to the integration server.

    We need to populate about 5000 + lines into the combo box at some times.

    And the product is cgi. So Icant get anything form it...
    The knack of flying is learning to throw yourself at the ground and miss.

  4. #4
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    Using this small piece of code:
    Code:
    <select name="test">
    <?php 
    for($i=0;$i<2000000;$i++)
    	echo "<option value='" . $i . "'>" . $i . "</option>";
    ?>
    </select>
    It appears that Opera craps out at 32768, IE is good for at least 200,000. Don't run the above code (2 million) because it brought my machine to a screaming halt.

  5. #5
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    The problem is that we create the drop down list without any initial values. the Integration Server populates it at runtime via the cgi and the JDBC
    The knack of flying is learning to throw yourself at the ground and miss.

  6. #6
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    I don't see how that matters.

  7. #7
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    he's right, it doesn't matter. You're better off either finding another way to display the data (splitting into multiple drop downs should the number of items reach x), or coding your own browser. Those are about it.
    PHP and XML
    Let's talk about SAX

  8. #8
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    I'm only allowed to use one dropdown for teh results.

    Another thing (bug) I picked up with the software is that the Integration server can only populate to one drop down list at a time.....that sucks....

    when the list is populated via thequery, I view the source, and there is no "option" tags within the select.
    The knack of flying is learning to throw yourself at the ground and miss.

  9. #9
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    I have no idea... something is screwed up in the code then. Why can't you do all the work yourself instead of passing it off to some other service?

  10. #10
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    If you bought the software tell them to fix their crap or get a refund and attempt it yourself/have someone else there do it. Your project seems pretty impossible at this point...and if you do find a workaround, it's going to be sloppy as hell.
    PHP and XML
    Let's talk about SAX

  11. #11
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    I'll stick with their product at teh moment.

    It's going to take me a WHILE to code a whole electronic document management sloution...
    The knack of flying is learning to throw yourself at the ground and miss.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sorting linked list please help with CODE
    By scarlet00014 in forum C Programming
    Replies: 3
    Last Post: 09-27-2008, 11:24 PM
  2. deleting a node in linked list
    By BoneXXX in forum C Programming
    Replies: 18
    Last Post: 12-17-2007, 11:30 AM
  3. How can I traverse a huffman tree
    By carrja99 in forum C++ Programming
    Replies: 3
    Last Post: 04-28-2003, 05:46 PM
  4. problem with structures and linked list
    By Gkitty in forum C Programming
    Replies: 6
    Last Post: 12-12-2002, 05:40 PM
  5. Combo Box Extended
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 11-15-2001, 08:04 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21