FireFox users - please test... issue with div display

Discussion in 'JavaScript' started by GoldDog, Apr 3, 2006.

  1. #1
    I'm no virtuoso when it comes to js... I got help from one of you to build this script. For the most part it works great...

    Can all you FireFox users out there test this for me? I've tested it on three computers with no problem, and I've had friends report no problems, but my client says every machine he tries it on does not work (FF only). I don't get it.

    http://singtree.com/2006/

    Try this: click Rhododendrons/Purple/Vibrant Violet. On the display page for that plant you must then choose a shipping size (in this case only one is available) to display the pricing options. This seems to work fine, but when you click on the Featured Plant link in the right column, you are taken to the display for that plant (exact same page). My client says these options do not display for him in FF, but it works fine in IE. This only happens when he accesses the plant display page through the Featured Plant link.

    Are any of you experiencing this problem?

    The script (trimmed way down):

    <Script language="JavaScript">
    <!-- //
    var c = 1;
    function prDisplay(i) {
    if(c!=1) {
    eval(c).style.display='none';
    }
    c=i;
    eval(i).style.display='';
    }
    // -->
    </SCRIPT>

    <input type="radio" name="ShipSize" onclick="prDisplay('pr#plantID#')" value="#ss#">#shippingsize#

    <div id="pr#plantID#" style="display:none;">
    pricing info here
    </div>

    Any help in solving this riddle would be very much appreciated. thanks! C
     
    GoldDog, Apr 3, 2006 IP
  2. Slapyo

    Slapyo Well-Known Member

    Messages:
    266
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #2
    I'm using the latest FF and am having no problems. I can't reproduce the problem your client is having. Do they have the latest version of FF?
     
    Slapyo, Apr 3, 2006 IP
  3. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #3
    Worked fine for me. FF 1.5.0.1

    I seem to recall having to update my java a month or two ago. In addition to making sure client has most recent FF you might want to check that on his local machine.
     
    Colbyt, Apr 3, 2006 IP
  4. fluid

    fluid Active Member

    Messages:
    679
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Same here, no problems at all.
     
    fluid, Apr 4, 2006 IP