Icefaces 1.8 更新 iframe src
该环境由 Icefaces 1.8 和 Weblogic 10.3 组成。我遇到的问题是我需要更新应用程序中 iframe 的 src 属性。出于调试目的,我使用了这个答案。问题是,警报似乎永远不会从我的应用程序内触发,代码如下:
<iframe id="iframe" onLoad="alert('Changed src');" name="iframe" src="#{backing.currentPageURL}" width="600px" height="400px"/>
我预计每次更改 iframe 中的页面时都会看到警报。示例如下:
- 输入 http://www.bing.com 作为 currentPageURL 的值
- 搜索猫
- 选择关于猫的维基百科文章 //我应该在这里弹出一个窗口,但我没有
问题是如何在icefaces的上下文中修改iframe的src URL。
The environment consists of Icefaces 1.8 and Weblogic 10.3 . The issue I am experiencing is I need to update the src attribute of an iframe within my application. For debugging purposes I used this answer . The problem with that is it appears that the alert never fires from within my application, code is as follows:
<iframe id="iframe" onLoad="alert('Changed src');" name="iframe" src="#{backing.currentPageURL}" width="600px" height="400px"/>
I would anticipate to see an alert every time I change the page within the iframe. So an example of this is as follows:
- Enter http://www.bing.com as the value for currentPageURL
- Search on cats
- Select the wikipedia article on cats //I should get a popup here, but I do not
The question is how do I modify the src URL of the iframe within the context of icefaces.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在这里有两个问题,一个是弹出窗口,另一个是用新值更新支持 bean 中的 url。
我在 Mozilla 中遇到了以下问题。
对于第二个问题,用新的 URL 值更新支持 bean。
干杯!
You have two questions here,one is for the popup and the other is for updating the url in the backing bean with the new value.
The following fires for me in Mozilla.
For the second question to update the backing bean with the new URL value.
Cheers!