user1106352
user1106352

Reputation:

is there iframe equivalent or alternative method?

I am trying to find a iframe equivalent or alternate method of inserting a page into another page, the page will still need to be active, and when I submit a form or click a link within it, it will need to function like an iframe. I know iframes still work, but now that they have been depreciating over several years, I would like to find a new method. Is there one, and what kind of scripting am I looking at?

Upvotes: 1

Views: 3765

Answers (2)

Matteo B.
Matteo B.

Reputation: 4064

My answer: No, there is no alternative, at least if you need to embed a page with another domain.

It is logical because you shouldn't have any cross domain access to an embedded page (for example https://americanbank.com/), which can only be guaranteed if the embedded site is captured inside a frame. And since that kind of frame is exactly the iframe, there is no space for alternatives and no reason to not use it.

EDIT: Well I have to concede there are some tricky ways but never without accessing a server side dynamic site via AJAX. So it is somehow possible but not with a comparable effort.

Upvotes: 1

JohnathanKong
JohnathanKong

Reputation: 1307

You can ajax in external pages that is very similar to an iframe. jQuery makes this really easy.

Upvotes: 0

Related Questions