我可以使用OBJECT为IE嵌入远程内容吗? [英] Can I use OBJECT to embed remote content for IE?

查看:104
本文介绍了我可以使用OBJECT为IE嵌入远程内容吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用 OBJECT 将内容从远程服务器嵌入到网页中。远程内容是由第三方提供的组件,并将其托管在其域中。对于所有使用相对URL的 data (相同的域名),我已经能够获得 OBJECT 标签以工作 )但IE在任何时候都会完全失败 data 属性引用远程站点。



有没有办法让我绕过这个限制?是否可以通过crossdomain.xml条目或其他可以在HTML中指定的标志来修复?






我意识到 IFRAME 是使用 OBJECT 的可能替代解决方案,但我更想知道如何处理如果可能的话,使用 OBJECT 。如果无法通过 OBJECT 执行此操作,那么我将知道我必须寻找其他选项。






根据另一个问题我已经决定,我将尝试使用 IFRAME 进行此项工作,而不用担心 OBJECT 标签。如果它最终导致第三方提供商的软件出现问题,我们可以在那个时候解决它。

解决方案

iframe的工作?


I am trying to use OBJECT to embed content from a remote server into a webpage. The remote content is a component provided by a third party and they host it on their domain. I have been able to get the OBJECT tag to "work" for all browsers using relative URL's for data (same domain) but IE fails completely any time the data attribute references a remote site.

Is there a way for me to get around this limitation? Is it something that can be fixed with a crossdomain.xml entry or some other flag that can be specified in the HTML?


I realize that IFRAME is a possible alternative solution to using an OBJECT but I would prefer to find out how to handle this with an OBJECT if possible. If it is not possible to do this with an OBJECT then I will know I have to look for other options.


Based on another question I have decided that I will try to make this work with an IFRAME and not worry about OBJECT tags. If it ends up causing issues with the third party provider's software we can address it at that point.

解决方案

Would placing it in an iframe work?

这篇关于我可以使用OBJECT为IE嵌入远程内容吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆