Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2009
    Cape Town
    Thanked 0 Times in 0 Posts

    Opens in IE8 but not in Firefox

    Hi all,

    I have a problem that is driving me insane!

    I have created an iframe within a div with an image that loads with the page. There are 8 thumbnails in another div and when clicked the linked picture opens in the iframe. The divs and the iframe are both styled with CSS. The thumbnails are just below the iframe and on the same page.

    The problem is that it works fine in IE* but nothing loads in the iframe in Firefox. It almost crashes the browser and all that is displayed are rows of numbers and letters.

    Can anyone help please?


    Here is the code:

    <div id="iframediv">
    <iframe name="imageframe" id="imageframe" scrolling="No" frameborder="0" src="pagepics/citylimits.jpg" ></iframe>
    <div id="thumbdiv">
    <a href="pictures/citylimits/tr1a.jpg" target="imageframe"><img src="pictures/citylimits/tr1a_s.jpg" class="thumbclass" /></a>
    <a href="pictures/citylimits/tr1b.jpg" target="imageframe"><img src="pictures/citylimits/tr1b_s.jpg" class="thumbclass" /></a>
    <a href="pictures/citylimits/tr1c.jpg" target="imageframe"><img src="pictures/citylimits/tr1c_s.jpg" class="thumbclass" /></a>
    <a href="pictures/citylimits/tr1d.jpg" target="imageframe"><img src="pictures/citylimits/tr1d_s.jpg" class="thumbclass" /></a>
    <a href="pictures/citylimits/tr1e.jpg" target="imageframe"><img src="pictures/citylimits/tr1e_s.jpg" class="thumbclass" /></a>
    <a href="pictures/citylimits/tr1f.jpg" target="imageframe"><img src="pictures/citylimits/tr1f_s.jpg" class="thumbclass" /></a>
    <a href="pictures/citylimits/tr1g.jpg" target="imageframe"><img src="pictures/citylimits/tr1g_s.jpg" class="thumbclass" /></a>
    <a href="pictures/citylimits/tr1h.jpg" target="imageframe"><img src="pictures/citylimits/tr1h_s.jpg" class="thumbclass" /></a>

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Thanked 1,838 Times in 1,822 Posts
    Hello again Anita2105,

    Are you using a frameset DocType? Like this I think? - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

    Not sure why else it wouldn't work, would need to see more than just the snippet you've provided.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


    Posting Permissions

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