Results 1 to 2 of 2

Thread: Odd issue with Dynamic iFrame and IE7

  1. #1
    Join Date
    Mar 2008
    Thanked 0 Times in 0 Posts

    Default Odd issue with Dynamic iFrame and IE7

    1) Script Title: IFrame SSI Script II

    2) Script URL (on DD):

    3) Describe problem: I get an "Error on Page" message on IE7 for my website. The kicker is that it only comes up when I don't have www. in front of the rest of my website. The error comes up

    Line: 42
    Char: 6
    Error: Permission denied
    It took asking a friend for me to find out the error was only when I didn't have www. I'm not sure if this is a bug or something wrong with the script on my page, so I didn't report it as a bug.

  2. #2
    Join Date
    Mar 2005
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries


    When the top page has no www and the contained page does (or visa versa), IE thinks it is a different domain, from the demo page:

    *All external pages loaded into the iframe must be from the same domain as the page the iframe tag is inserted in. Setting the iframe's src to an external site such as "" will not work, since the script cannot probe and detect the height of pages from external domains.
    You could avoid this by using relative paths (and/or network paths), that way however a user arrives at your site, when they load other content into the iframe it will have the same base domain, whether it be with or without the www part.

    A relative path is like (for a page in the same folder):

    HTML Code:
    <a href="somepage.htm">Something</a>
    But let's say you are using an absolute path:

    HTML Code:
    <a href="">Something</a>
    There is pretty much just saying 'start from the root'. The below network path with its leading slash does the same thing:

    HTML Code:
    <a href="/ipages/somepage.htm">Something</a>
    With both the relative and the network path, the browser will see the root domain as whatever it appears to be in the address bar. If you use the absolute path, it is a toss up as to whether or not it will match the way the user got to your site.
    - John

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


Posting Permissions

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