Solved

select box - odd behaviour when showing options - showing upwards

Posted on 2009-04-15
5
138 Views
Last Modified: 2012-05-06
Hi all,
I have a select box on a page with about 150 options.
When a user goes to select and option the options appear up the way.
thats normally ok, but for some reason the top of the options are displayed outside of the browser window! So its drawing outside the viewport.
pretty odd.

The select is in a div thats absolutely positioned but i changed it to a table and that didnt have any impact either.

Is there any way to specify the direction the options appear so I can force it to appear below?
Of failing that can i reduce the number of results shown at a time in the select boxes options?

Thanks!
o

0
Comment
Question by:osion
  • 3
  • 2
5 Comments
 
LVL 41

Accepted Solution

by:
HonorGod earned 250 total points
ID: 24151923
I don't think so.  Where, on the page, does your select occur?

If the select is on the top half of the page, do the options display down?

Since your list of options is so long, perhaps you could consider some kind of "typeahead" filtering mechanism that would subset the data based upon user input (e.g., as the user types the first few letters, only entries with those letters, in that sequence would continue to be displayed).
0
 

Author Comment

by:osion
ID: 24155557
Hey HonorGod,
Thanks for the reply. Well the select appears in the top third of the page. I thought it would show down the way as theres more room but it seems to always go up. It only happens at 1024 x 768 resolution, but thats the resolution I have to design for.

The typeahead option would work but unfortunately the users have to be able to select an option from the list. We actually imlpemented a type ahead textbox already for another field.

I've just noticed it only happens in IE7 and not in IE6! how odd is that!
O
0
 
LVL 41

Assisted Solution

by:HonorGod
HonorGod earned 250 total points
ID: 24157260
Ah, yet another instance of IE being evil... :-)

I hate those "hard to predict" kind of things.

What kind of entries do you have, might you be able to display, for example, the 1st letter of existing entries, then when the user chooses a letter, that starts the filtering process, and only those entries that start with the specified letter get displayed?

Just a though.
0
 

Author Comment

by:osion
ID: 24157390
Hey,
Yes a lovely little nuance that only arrives once your finished :)

Well I ve found a pretty un technical workaround! I've swapped the location of the box around with another one and low and behold its fine again.

Thank goodness as there doesnt seem to be any way to control it apart from building a drop down with a list instead!
Thanks for the help though!
O
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 24157817
Thank you for the grade & points.

Sorry I didn't have a better answer for you.

Good luck & have a great day.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now