What's new

Web Alternatives to iframes?

lowpro

lowpro

Professional Abecedarian
Programmer Mythical Veteran Mr. Nice Guy
Messages
4,528
Reaction score
2,041
Points
725
Sin$
0
Hi all,

so I thought I could use an iframe to include a page from a different site on my own, but when I try I get this:

c5fd2bc694f5da75f04c209d1827ace8.png

On firefox/chrome it's blank, on IE it says the page does not allow embedding or something like that. What else can I do to embed one page inside another within a defined region?
 
L

Legless

Be spontaneous, be kind, be open-minded.
Messages
4,375
Reaction score
2,536
Points
665
Sin$
0
Hi all,

so I thought I could use an iframe to include a page from a different site on my own, but when I try I get this:

c5fd2bc694f5da75f04c209d1827ace8.png

On firefox/chrome it's blank, on IE it says the page does not allow embedding or something like that. What else can I do to embed one page inside another within a defined region?
Ajax?
 
Z61

Z61

Some times our saints are sinners
Retired
Programmer Forum Addict Odysseus' Summit
Messages
5,468
Reaction score
3,429
Points
1,042
Sin$
0
I'm pretty sure this is due to origin control. What you could do is make a php file that echo's the contents of the page (file_get_contents(url)) and then make that the iframe's html source.
 
ObscureCoder

ObscureCoder

Enthusiast
Messages
684
Reaction score
308
Points
125
Sin$
0
Yeah. Sites like Google etc. don't like being in frames due to security reasons since there has been frame based XSS. As Z61 said just use fgc or curl
 
Im4eversmart

Im4eversmart

The hacks are real
Glitcher Modder Programmer
Messages
2,156
Reaction score
1,903
Points
455
Sin$
7
Yeah. Sites like Google etc. don't like being in frames due to security reasons since there has been frame based XSS. As Z61 said just use fgc or curl
It's a browser security option to not allow cross origin requests, not the site. Most browsers are defaulted to not allow them.
 
Top Bottom
Login
Register