tags:

views:

52

answers:

3

Hey Few Questions
1.Is it legal to have an IFrame on a website which inside has an external website?
2.In an IFrame is it possible to only show a section of the src that isnt the top left of the site (for instance if there was a chart in the middle of a website, could u have just the chart in your Iframe, or atleast start it centred there)
3.Any way to stop my IFrame from auto redirecting me to the external site

for 3: ie

<iframe src="http://fifa.com"&gt;&lt;/iframe&gt;

Just sends me to fifa instead of actually showing that site in a frame.

+2  A: 

Instead of using an iframe is it possible to copy the chart and source it back to where you got it from?

Fifa is probably using javascript to prevent you from placing the site in an iframe... and it's generally a pretty shady thing to do.

Mike Keller
Indeed, fifa does:if(parent.frames.length>0) {top.location.href=self.location.href;}
jdeseno
Dam you FIFA! haha based on the answers to my other questions this wont be my best solution anyways! Thanks for the help
Josh K
+1  A: 
  1. I guess it's legal, but it isn't decent.
  2. Ah, so you only wanna show the scores i.e., I guess there should be a way, but again it's not decent, you just don't use such constructions, you just don't!
  3. No! That's exactly the point of that redirect. The only way to do that will be with javascript disabled.
GuidoH
+1  A: 
  1. This depends on the rules of the external website. You should at least ask them for permission and only do it if they are OK with it (no replay does not mean they agree!)

  2. No, an IFrame is like a new browser.

  3. If the external site uses JavaScript to break out of frames, then the only way to prevent this is to disable JavaScript in your browser.

Aaron Digulla