Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
| Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 4th, 2004, 10:25 AM
Authorized User
 
Join Date: Jan 2004
Location: Oklahoma City, , .
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default iframe...or a better way?

I'm trying to use an iframe to include a page from another website, but when you go to look at that page, it automatically redirects you to the page i'm trying to put in the iframe! Is there a better way to do this?

<iframe src="www.???.htm"
width="100%" height="400"
align="center"> </iframe>

  #2 (permalink)  
Old September 4th, 2004, 10:51 AM
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

The better way is not to do that. :D

If you view the source of the other page they have probably included a script similar to the below, because they don't want to "get caught" in other people's frames. Intentionally framing other pages without consent is considered impolite, to put it mildly. ;)

http://www.htmlhelp.com/faq/html/fra...l#stop-framing

(o<
//\ =^..^=
  #3 (permalink)  
Old September 4th, 2004, 10:55 AM
Authorized User
 
Join Date: Jan 2004
Location: Oklahoma City, , .
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK, thank you. It is my page, but it's on another site...Oh well. I'll just have to link to it, I guess...

  #4 (permalink)  
Old September 4th, 2004, 11:01 AM
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Oh, sorry!

Is it on a free host? If you haven't put a frame-breaking script in maybe they have. Not too uncommon if they don't want people to load pages from other servers or use redirection services like dot tk.

(o<
//\ =^..^=
  #5 (permalink)  
Old September 4th, 2004, 11:04 AM
Authorized User
 
Join Date: Jan 2004
Location: Oklahoma City, , .
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK, thanks for your help!



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get out from Iframe k.manisha ASP.NET 2.0 Professional 1 September 12th, 2007 12:20 PM
values from one iframe to another iframe URGENT raaj Beginning PHP 2 February 27th, 2007 12:19 PM
iFrame fyp4135 ASP.NET 2.0 Basics 0 October 5th, 2006 11:32 AM
iframe help splinterz HTML Code Clinic 12 April 13th, 2005 01:42 AM
iframe rockon HTML Code Clinic 1 March 2nd, 2005 06:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.