|
Posted by Adrienne Boswell on September 18, 2007, 9:49 pm
Please log in for more thread options
Gazing into my crystal ball I observed Matthew Cox
@k79g2000hse.googlegroups.com:
> Hi,
>
> I've been searching the net all day today trying to figure out how one
> would accomplish what I originally thought would be a fairly straight
> forward and simple thing. The problem I'm trying to solve is that the
> designer would like to limit the total number of entires shown when
> you click on the drop-down arrow of a select box. I'm starting to
> think that this isn't possible.
>
> I've tried the following with no luck:
>
> - Setting the height attribute on the select element
> - Setting a style height for the select attribute
> - Modifying the same through Javascript
> - Setting the style overflow-y to scroll
> - Setting the size of the select element
>
> At some point in my browsing someone claimed that the vertical scroll
> bars are controlled by the OS/Browser and there are no ways to change
> this using JS or CSS. That the magic number of IE is 30 entries before
> the vertical scroll bar shows up.
>
> That's where I'm at right now. Can anyone help shed some light on
this?
>
>
I know you can do the checking server side, eg. (asp)
if ubound(split(selectbox,", ")) > number then
'too much
elseif selectbox = "" then
'nothing at all
else
'just right
end if
I would image there might be a way to do that client side, but I'm not a
javascript person. Maybe post to comp.lang.javascript for a better
answer.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info Please respond to the group so others can share
|