Is it possible to embed an existing web page into your own?

edprush

Platinum Member
Sep 18, 2000
2,541
0
0
So are there other options than iFrame? Does it matter that it's an old tag (do all browsers still recognize it)?


Thanks.
 

Zontor

Senior member
Sep 19, 2000
530
0
0
Not all browsers recognize iFrames.

Off the top of my head [easy to more difficult]:

1] Load it into a regular frame.
2] Load it into a container such as a DIV
3] Grab the page markup using Ajax [search google for objxmlhttp]

There are other ways but these should be a good starting point.

Realize that if someone doesn't want their page to be embedded there are things that can be done to make it harder...it is considered more polite to link rather than embed.
 

hans007

Lifer
Feb 1, 2000
20,212
18
81
Originally posted by: Zontor
Not all browsers recognize iFrames.

Off the top of my head [easy to more difficult]:

1] Load it into a regular frame.
2] Load it into a container such as a DIV
3] Grab the page markup using Ajax [search google for objxmlhttp]

There are other ways but these should be a good starting point.

Realize that if someone doesn't want their page to be embedded there are things that can be done to make it harder...it is considered more polite to link rather than embed.

wouldn't 2 & 3 basically have to go together.


ajax isnt some magical thing you'd have to write a script for ajax to call so some java script could throw the markup into a div or span.
 

troytime

Golden Member
Jan 3, 2006
1,996
1
0
Originally posted by: hans007
Originally posted by: Zontor
Not all browsers recognize iFrames.

Off the top of my head [easy to more difficult]:

1] Load it into a regular frame.
2] Load it into a container such as a DIV
3] Grab the page markup using Ajax [search google for objxmlhttp]

There are other ways but these should be a good starting point.

Realize that if someone doesn't want their page to be embedded there are things that can be done to make it harder...it is considered more polite to link rather than embed.

wouldn't 2 & 3 basically have to go together.


ajax isnt some magical thing you'd have to write a script for ajax to call so some java script could throw the markup into a div or span.

so you'd write an ajax script that would call some javascript?
:p

 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
For what it's worth, all main-stream browser support iframe. The only browser I can think of that doesn't is omnicab (some niche Mac browser).

xmlhttprequest won't work if the page you're embedding isn't on the same domain as your wrapper page.