Solved

IFrame / Frame HTML

Posted on 2012-03-12
5
292 Views
Last Modified: 2012-03-28
Hi guys,

I would like to IFRAME a url but it returns: "this content cannot be displayed in a frame", or if I use Frame, the page will show in full.

someone knows if possible?

Thank you!
0
Comment
Question by:randybucao
  • 2
  • 2
5 Comments
 
LVL 28

Expert Comment

by:sammySeltzer
ID: 37711544
Is it something like this or did I misunderstand you?

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"><html>
<head>
<title>URL in Iframe</title>
</head>
<body>
<table cellspacing="0" cellpadding="0" width="100%" border="0" bgcolor="#000066">
<tr>
	<td valign="top" width="10%" height=1000 bgcolor="#000066">
	 I am going to put url in iframe	
	</div>
	</td>
	<td valign="top" width="80%">
		<IFRAME SRC="yourURL.html" Name="iframename" style="width: 100%; height: 100%"></IFRAME>
	</td>
</tr>
</table>
</BODY>
</HTML>

Open in new window

0
 

Author Comment

by:randybucao
ID: 37711573
thank you for the reply.

sammy, I tried it, but this website/url I am using IFrame on part will just open my webpage but once loading the Iframe, it will refresh to their website/url.

example, if I save your code above as http://mydomain.com/iframe.htm, then use url "http://otherdomain.com/iframe.htm" as "url.htm",  when I load my page, it will automatucally refresh and will jump to: "http://otherdomain.com/iframe.htm".
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 37711637
That would happen if you tried to put some of my pages in your iframe because I have code to force my page to be the main page.  Are you trying to load a Google or Youtube page?  They generally don't allow their pages to be displayed in a frame or iframe.
0
 

Author Comment

by:randybucao
ID: 37711649
not google or youtube, but something else website. Dave, i guess no other option or not possible to IFrame then?
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 37711700
Not if they have it blocked.  A lot of sites do block displaying in a frame.  They don't want you using their content.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After uninstalling Opera browser (for example ver. 10.63), your attempts to open a web page by clicking on a URL link may fail with an error message.  The error is "This operation has been canceled due to restrictions in effect on this computer. Ple…
Now-a-days, indirectly, postal services have been replaced by email services. Yes, whenever we hear the word "email" a lot of people only think of gmail. Some people still think that email and gmail are one and the same thing :-). Let's see some …
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question