[thelist] Urgent HELP: [ADVANCED] How to prevent focus in a Combo Box (<select> tag) using JS?

Hershel Robinson hershelr at netvision.net.il
Tue Aug 30 09:10:44 CDT 2005


> a word about
> myself that I am an Advanced JavaScript developer.

I myself am an amateur to mediocre JS developer. :)

> My expected end result: My expectation is to get the Combo box to behave
> smooth when the click and drag is performed. Also I *DO NOT* want to set
> the disabled property, since it fades off the text and borders...

How about setting the control to disabled until the user begins to move? 
Setting it to disabled fixes the list contents flash (in IE Win anyhow, 
which seems to be your problem browser) and then you can reset it to 
enabled as soon as it begins to be dragged.

If that also doesn't work, what about temporarily REMOVING all of the 
options from the control when it receives a click and then returning 
them when you want them to be there? Seems like your issue is the flash 
of the list. If you don't want a list to flash, so take away the list. :)

If that also is not to your liking, I would suggest trying a JS-built 
combox replacement widget in place of your HTML control.

Hershel


More information about the thelist mailing list