Results 1 to 3 of 3

Thread: Why isn't this iframe showing in Chrome?

  1. #1
    Join Date
    Feb 2005
    Posts
    71
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Why isn't this iframe showing in Chrome?

    I've just seen that the iframe isn't showing on one of my pages using Chrome. It shows up fine in IE and Firefox. Can anyone please tell me why?

    Here is the page: http://www.curiouser.co.uk/illusions/cardtrickf.htm

    Thanks,

    Rob

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    For some reason Chrome thinks the page in the iframe is encoded as Simplified Chinese (UTF-16LE). Try putting a meta charset tag on the page(s) in the iframe, ex:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/html4/loose.dtd">
      
    
    <HEAD>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    
    
    
    <LINK REL="stylesheet" HREF="style3.css" TYPE="text/css">
    
    
    
    </HEAD>
    
    
    
    
    <BODY>
    
    <div style="margin-top: 30px; margin-bottom: 2em; text-align: center; font-size: 90%">
    
    <p style="margin-bottom: 50px">
    Choose one of the cards below, and remember it.
    </p>
    
    <img src="cardsb.gif" height="176" width="600" alt="card trick">
    
    <p class="solution">
    <a href="cards2.htm">CONTINUE</a>
    </p>
    
    </div>
    </BODY>
    The browser cache may need to be cleared and/or the page refreshed to see changes.

    If that doesn't work, you will need to configure the default encoding of the server or have your host do it for you. It should not be UTF-16, probably UTF-8, but since you seem to favor ISO-8859-1, perhaps that would be best for your site.
    Last edited by jscheuer1; 02-07-2012 at 06:24 PM. Reason: add info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    robertsaunders (02-07-2012)

  4. #3
    Join Date
    Feb 2005
    Posts
    71
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Thanks John. Just added the charset to the pages in the the iframe as you suggested and now works fine.

Bookmarks

Posting Permissions

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