Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-15-2013, 08:48 PM   PM User | #1
MrAtoBandMe
New Coder

 
Join Date: Mar 2013
Posts: 49
Thanks: 25
Thanked 0 Times in 0 Posts
MrAtoBandMe is an unknown quantity at this point
Question Why does my iFrame timeout in my HTML webpage?

I am learning HTML and Java, and I am getting message that says, "Your session has timed out.", within my iFrame. The page that I'm trying to open in my iFrame is from a website that is not mine. The website's page that I am trying to open will automatically redirect to a page from the same website that says, "Your session has timed out."

No login is required to access the website's page that I am trying to load in my iFrame, and I can load the website fine if I paste the exact same link into my web browsers address box. This problem only occurs when I try to load the page into an iFrame.

For example, I am trying to load "www.website.com/Hello" within my iFrame, and the iFrame goes to "www.website.com/TimeOutError".

What causes this and is there a way that I can load the page within an iFrame?
MrAtoBandMe is offline   Reply With Quote
Old 03-15-2013, 09:15 PM   PM User | #2
Chrystyan
New Coder

 
Join Date: Mar 2013
Location: Indiana
Posts: 26
Thanks: 0
Thanked 7 Times in 7 Posts
Chrystyan is an unknown quantity at this point
Quote:
Originally Posted by MrAtoBandMe View Post
I am learning HTML and Java, and I am getting message that says, "Your session has timed out.", within my iFrame. The page that I'm trying to open in my iFrame is from a website that is not mine. The website's page that I am trying to open will automatically redirect to a page from the same website that says, "Your session has timed out."

No login is required to access the website's page that I am trying to load in my iFrame, and I can load the website fine if I paste the exact same link into my web browsers address box. This problem only occurs when I try to load the page into an iFrame.

For example, I am trying to load "www.website.com/Hello" within my iFrame, and the iFrame goes to "www.website.com/TimeOutError".

What causes this and is there a way that I can load the page within an iFrame?

A likely problem is that your host isn't allowing it, but it could also be the other website is not allowing it.

If you're simply trying to copy the contents of the website, try this PHP code to do so:

PHP Code:
<?php
$homepage 
file_get_contents('http://www.example.com/');
echo 
$homepage;
?>
Source: http://php.net/manual/en/function.file-get-contents.php

There are a few other options that may be available to you, but if your host does not allow you to do things like this that may be impossible as well.

It might help if you post your link so we can view the error. It's hard to diagnose something if we can't test it. For instance, you can rule out your host by checking it on this page with the iframe code you have: http://www.w3schools.com/html/tryit....e_height_width

If you get the same error, it's the other website. If you do not get an error, it's your web host.
Chrystyan is offline   Reply With Quote
Users who have thanked Chrystyan for this post:
MrAtoBandMe (03-16-2013)
Old 03-16-2013, 11:28 AM   PM User | #3
MrAtoBandMe
New Coder

 
Join Date: Mar 2013
Posts: 49
Thanks: 25
Thanked 0 Times in 0 Posts
MrAtoBandMe is an unknown quantity at this point
I found the problem and it had something to do with IE privacy settings. Once I set them to the lowest, all pages within my iFrames worked fine.
MrAtoBandMe is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:42 PM.


Advertisement
Log in to turn off these ads.