Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript issue with Firefox

    I have a website that has a link that changes the content of an iframe. It works perfectly in IE (6 & 7) and Opera, but doesn't work in Firefox.

    Here is the link:
    <a href="#null" onClick="document.frames['MainFrame'].location.href='flash.php?f=Fallview';">View Slide Show</a>

    I also happen to have a navigation iframe (on that same page) where I have similar code but it is "parent.frames['..." . This link works fine in both IE and Firefox.


    Any ideas?

    The website is http://www.fallviewroad.com

    Thanks

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Code:
    <a href="#null" onClick="window.frames['MainFrame'].location.href='flash.php?f=Fallview'; return false;">View Slide Show</a>
    But you can also do it without scripting.
    Code:
    <a href="flash.php?f=Fallview" target="MainFrame">View Slide Show</a>
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've been staring at that code for hours...sometimes it just needs a fresh pair of eyes


    Thanks SOOOOOOO much!!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •