IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Two options:
Either

1) Stop declaring the 'width' param, and let the boxes resize to fit their contents, or

2) Since you're already using Javascript, have another box whose contents reflect the value of a given option when mouseover'ed. You might consider the status bar? If you use layers, you could have a much shorter "value" for each option, which pops up a tooltip-like div with a longer explanation.

Many fears are born of stupidity and ignorance -
Which you should be feeding with rumour and generalisation.
BOfH, 2002 "Episode" 10
New Depending on the total number of items
The advantage of the list box is that you can define the length of the list and scroll down for the rest of a large number of options. But if width is more of a concern I'll agree with the idea of checkboxes next to a short summary, text or button, that cupports the "title" attribute. ie:

<input type="checkbox" name="item[]"> <a href="#" title="This is example 1">Ex1</a>
<input type="checkbox" name="item[]"> <a href="#" title="This is example 2">Ex2</a>
<input type="checkbox" name="item[]"> <a href="#" title="This is example 3">Ex3</a>
===

Implicitly condoning stupidity since 2001.
New "a" tags don't accept "title" attribute (new thread)
Created as new thread #83998 titled [link|/forums/render/content/show?contentid=83998|"a" tags don't accept "title" attribute]
===

Implicitly condoning stupidity since 2001.
New I'll run with the option of...
..displaying it on the status bar via the onchange event. As far as I can tell, the option tags don't support any sort of event handling (like onmouseover) and the event handling within the containing select tag doesn't provide a mechanism to register which option is being hovered over (short of having to do a bunch of finagling with line spacing and mapping the device coordinates...).

Allowing the width to slide is not really an option either since these strings can get excessively long and also the bounce when dynamically taking strings in and out is disconcerting. What I'd really like is to have a word wrap attribute on the option tag so that an option could be displayed over more than one line.

Did I mention that the option tag is basically brain dead? Even worse is the optgroup tag. So how do you allocate new optgroups on the fly? Or if you already have an optgroup, how does the javascript put an new option in the group if there are no current options within the group? The tag seems to have been thrown in and abandoned as far as support goes.
     HTML Select Tag questions - (ChrisR) - (9)
         Answer on the questions.... - (folkert) - (6)
             A little background - (ChrisR) - (5)
                 D'oh. - (static)
                 Two options: - (tseliot) - (3)
                     Depending on the total number of items - (drewk) - (1)
                         "a" tags don't accept "title" attribute (new thread) - (drewk)
                     I'll run with the option of... - (ChrisR)
         NAME vs ID. - (static)
         You could use a Javascript - (orion)

Little fluffy clouds.
41 ms