Forum Moderators: open

Message Too Old, No Replies

Select Box will not pull down in Netscape 7 / Mozilla

         

rexrhino

6:05 pm on Jun 16, 2004 (gmt 0)

10+ Year Member



I have a select box that I am using as a menu to open other webpages. You click on it, and it is supposed to open other pages.

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.

There shouldn't be anything else in the page causing the problem, because I tested it in a page with nothing but the select box pulldown.

Mostly I am looking if people have dealt with this problem before. Sorry I can't show you more, as I am not allowed to post the code or javascript due to a strict non-disclosure-agreement. That might limit how people can help, but any knowledge/speculation on what is causing the problem would be greatly appreciated.

birdbrain

7:00 pm on Jun 16, 2004 (gmt 0)



Hi there rexrhino,

Welcome to these forums ;)

This select box works in...

  • I.E. 6
  • Mozilla 1.6
  • Netscape 7
  • firefox 0.8
  • Opera 7

    <script type="text/javascript">
    <!--
    function webPages() {
    location.href=document.forms[0][0].options[document.forms[0][0].selectedIndex].value;
    }
    //-->
    </script>

    <form action="">
    <select onchange="webPages()">
    <option>selections</option>
    <option value="http://www.webmasterworld.com/">webmasterworld</option>
    <option value="http://www.w3schools.com/">w3schools</option>
    </select>
    </form>
  • elponderador

    3:21 pm on Jun 21, 2004 (gmt 0)

    10+ Year Member



    It seems that it will not work inside of a div once the div is repositioned.... it has the same problem as described at first

    DrDoc

    3:44 pm on Jun 21, 2004 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    What do you mean by repositioned?

    elponderador

    3:50 pm on Jun 21, 2004 (gmt 0)

    10+ Year Member



    Well, I am using a onload="" function to center a div tag that has nested divs leading up to a form that has a select box in it. It seems though that whether I position the root div or not the select box will not pull down...

    DrDoc

    4:02 pm on Jun 21, 2004 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    Have you tried centering the div anyway, without using JavaScript? It is probably a lot easier to center the div using CSS.
    Also, there might be something else on the page, prior to the form, that is "broken". Does your markup validate [validator.w3.org]?

    elponderador

    4:17 pm on Jun 21, 2004 (gmt 0)

    10+ Year Member



    its definitely easier to use the center tag, but as I hinted... it does not seem to be related to the centering routing... but I will run it through the validator ... thanks for the recommendation