Results 1 to 8 of 8

Thread: iframe does not load from external links

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

    Default iframe does not load from external links

    How do I link directly to the page that contains my iframe?

    When linking from an external page or email link - the iframe will not load -at the same time - the links that should change the iframe do not work.

    However, when navigating from the website homepage - the iframe will load, as well as the links on the page.

    Please try this link and let me know what I'm missing:

    http://www.ncisupplierservices.com/testimonials.htm

    Thank You!

  2. #2
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default clarification

    Do you mean you load a different website that display your website?
    Does anything display instead of the iframe?

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

    sanins (03-13-2008)

  4. #3
    Join Date
    Mar 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks for replying . . .

    If you click on the link above, the iframe should appear on the right hand side of the page above the menu bar with - contact us, testimonials, documents.

    The iframe url's are from my site and not an external web site. I was hoping to send out an email with links directly to testimonials and have the iframe load correctly.

    Nothing is displayed when linking from an email or external link.
    Last edited by sanins; 03-13-2008 at 04:38 PM.

  5. #4
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default I understand now

    Try adding this to your iframe pages.
    Code:
    window.onload = function() {
    if (top.location != self.location) //if this window is the only one (there is no 'top' window')
    top.location = "http://www.ncisupplierservices.com/testimonials.htm";
    };
    Let us know if it works

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

    Default

    I added the above code to iframe page (consorta.htm) - unfortunately the page kept trying to load and reload.

  7. #6
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    whoops,

    try this

    Code:
    window.onload = function() {
    if (top.location == self.location) //if this window is the only one (there is no 'top' window')
    top.location = "http://www.ncisupplierservices.com/testimonials.htm";
    };

  8. #7
    Join Date
    Mar 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Ok . . . page stopped trying to reload, however, the iframe is still blank.

    I'm assuming this code should go in the head section of the iframe page consorta.htm?

  9. #8
    Join Date
    Mar 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    On a good note . . . the iframe links now work when accessing the page from an external link! Thank you!

    Now . . . If the page would load the default iframe, I would be in great shape.

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
  •