开发者

How can I load a remote document into an IFRAME in Internet Explorer? (IE6, IE7, IE8)

开发者 https://www.devze.com 2022-12-14 08:59 出处:网络
I posted a question the other day about why IE8 would not allow me to embed a page usin开发者_运维技巧g the OBJECT tag. Per that discussion, and per my other research, I decided to just go with an IFR

I posted a question the other day about why IE8 would not allow me to embed a page usin开发者_运维技巧g the OBJECT tag. Per that discussion, and per my other research, I decided to just go with an IFRAME as it was not clear that the third-party application actually needed to be in an OBJECT.

Now here I am, a day later, finding out that IE8 has the same cross domain issue with IFRAME that it does with OBJECT. Is there any way around this? Why can I not find any discussion about this being an issue?

It has been awhile since I have had ot use an IFRAME for anything but I am pretty certain that this used to be really easy to do. Am I missing something, or am I really stuck going back to early AJAX days of having to build a local PHP proxy script to proxy my request to the remote server?


Take a look at EasyXDM. It's a library which wraps cross-browser quirks and provides an easy-to-use API for communicating in client script between different domains using the best available mechanism for that browser. Caveat: you need to have control over both domains in order to make it work (where "control" means you can place static files on both of them).

0

精彩评论

暂无评论...
验证码 换一张
取 消