Solved

IFrame / Frame HTML

Posted on 2012-03-12
5
294 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
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 +…

789 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