Thanks alot for your help sofar, Thomas.
You are right: it is not a textarea, but a list of options which unfolds.
We have CSS enabled, however there are no specific attributes for the SELECT
apart from the one we are inlining (width=110px).
I have tried to take out the 'width' of the SELECT element, however to no
avail. The dropdown just expands to the widest element. This is not allowed
(we have a restriction of max 110px for a dropdown on that specific page).
We want the list of options to expand. Do you possibly have a code snip I
could look at, which does the trick?
We are not allowed to use ActiveX or anything similar, just JScript or
javascript.
When script is disabled, it is not a problem (we use complete different page
renedering logic)
"Thomas 'PointedEars' Lahn" <Po*********@web.de> wrote in message
news:3F**************@PointedEars.de...
Ganco wrote:
We have a dropdown combobox, where some of the text is wider than
the textarea.
I cannot set the width of the SELECT any higher due to design
restrictions on the company website.
What if CSS is disabled or not even supported? The design is definitely
borken.
When clicking the dropdown box, I want the textarea (which unfolds
beneath the dropdown)
When one writes about a textarea here, it is most certainly considered
a `textarea' (X)HTML element. In this regard, it is not a textarea
that unfolds but a list of options, because it is only displayed as a
dropdown box in *your* UA(s), it is in fact a `select' element of size 1.
to expand to the widest element of the options.
I can see that Netscape does this automatically,
IE (6.0) does it, too, unless you specify the width of the `select'
element with CSS.
but how would you do it in IE?
If you need the fixed width of the element there is no way to accomplish
that. Even if you could do that with JScript[tm] somehow, what if
script support is disabled? Even if you would use an ActiveX control
that allows that rather than the HTML element, what if ActiveX support
is disabled or not present (AFAIK all UAs but IE on Windows)? You
cannot fix design flaws in other ways (including JavaScript) reliably
instead of really *fixing* them.
PointedEars
--
The last words of an *n*x admin:
# fsck /dev/hda8
/dev/hda8 ist already mounted. Destroy directory structure anyway?<y> yes
Please stand by...