"OPTION VALUE" page reload issue in Firefox

Discussion in 'PHP' started by Omzy, Jan 9, 2009.

  1. #1
    The problem is as follows:

    I have a SELECT element on the page (PHP) which has several OPTION elements contained in it; of those the first and last OPTION elements have the same VALUE attribute.

    Now when I launch the page in Firefox and then hit reload, the SELECT element selects the last OPTION element by default.

    If I do a SHIFT+RELOAD it selects the first element by default (which is the correct behaviour).

    The SELECT element does not GET/POST any data upon reload.

    I'm using Firefox 3 and this is the only browser that has this problem - I've tested in IE6/IE7/IE8beta, Chrome, Safari and Opera.
     
    Omzy, Jan 9, 2009 IP
  2. cont911

    cont911 Peon

    Messages:
    50
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    natural solution is to not use the same value of 'option' elements
    if you need that, just select first option by javascript on page load
     
    cont911, Jan 9, 2009 IP
  3. Omzy

    Omzy Peon

    Messages:
    249
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    cont911 - those two options need to have the same value, due to how my site is designed.

    It must just be a bug in Firefox though, as it works OK when you do a SHIFT+RELOAD.

    Has anyone else experienced this problem? Is there any other way around it apart from JavaScript?
     
    Omzy, Jan 10, 2009 IP
  4. Omzy

    Omzy Peon

    Messages:
    249
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Does anyone know if this is just a bug in FF?
     
    Omzy, Jan 20, 2009 IP