Solved

IFrame / Frame HTML

Posted on 2012-03-12
5
289 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
Comment Utility
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
Comment Utility
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 82

Expert Comment

by:Dave Baldwin
Comment Utility
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
Comment Utility
not google or youtube, but something else website. Dave, i guess no other option or not possible to IFrame then?
0
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Several part series to implement Internet Explorer 11 Enterprise Mode
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
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.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now