Forum Moderators: open

Message Too Old, No Replies

Select box in Mozilla not working. Focus issue?

         

complete weber

12:53 pm on Jan 14, 2005 (gmt 0)

10+ Year Member



I have a simple select box. It works in IE, Opera, etc. Unfortunatly, in Netscape/Mozilla, the select box does not pull down. The select box kinda works... you can click on it, and then use the arrow keys to select what you want, and then press enter. However, the options that you can select with a mouse will not pop down.

The select box is within a frame.
I have solved this problem in Mozilla by giving the containing frame focus when clicking the select box, but obviously, in IE you won't be able to select an option because the focus is shifted to the frame soon as you try to use the select box.

I have tried making a simple test case with a select box inside a frameset in Mozilla, and that works just fine, so there must be something in my page that causes this....

I'm interested in hearing about other peoples experiences with this problem....

(unfortunately I can show you any code)

adni18

9:58 pm on Jan 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



unfortunately I can show you any code

Lol. Beleive that's supposed to be can't.

All right, complete weber. You could use a window.setTimeout("whatever.focus()",10), so that after the frame is focused on, the drop-down box is selected. (I'm assuming this is a synthetic select box.)

complete weber

2:35 pm on Jan 18, 2005 (gmt 0)

10+ Year Member



Hey,
and thanks for you reply...

I have multiple select boxes in one frame. I guess the only way I can know which select box to give focus to is by handling the onclick event, but the problem is that setting focus to the selectbox during this event, causes the select box to 'close'.

I'm really puzzeled by what causes this bug in Mozilla....why do I even have to worry about being able to use a select box or write in a text field in the first place..?!

It's hard for me to find out too since my page involves XSLT, CSS, XHTML, Javascript and frames, althought I have validated all of that stuff.