Hi Randy,
Thanks for the response. I will answer your questions as best I can, though
I feel you may not be satisfied with my attempt. :)
Has anyone seen an example of the following javascript powered control:
- a dropdown select menu
Why do you need javascript when HTML accomplishes that?
- the width of the list when selected is dynamic
dynamic depending on what?
- the width of the list can grow beyond the width of the control without
changing the width of the control.
How do you propose to change its width without changing its width?
I know how HTML select controls work and I am asking for something slightly
different.
The issue is that I need a select control whose width doesn't change: it
needs to have a static i.e. unchanging width that in most cases will be
narrower than the text contained in the widest option. This is something I
have done with VB on an Access form.
The design I have been asked to create involves a 'grid' of select controls,
all of which are the same size, no matter what text their options contain. I
understand if this sounds silly or unreasonable to you, but I am not asking
for design advice. I am only asking if anyone has seen a previous Javascript
example of this.
My idea here is to use Javascript to render the list when the user clicks
the drop down button, effectively meaning the <select> element would need to
be separate from the <option> elements. Most likely the solution would use a
text field and a graphic to 'fake' the drop down and render the list as a
layer.
Kind regards,
Rob
:)