我目前正在使用 ExtLib 的自动加载功能结合 Ext.Window 和 Ext.tabPanel 将网页打开到弹出对话框中。如何使用 XPages 中的 dojo 实现此目的?
这是我想要实现的目标:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">
<xp:button value="Label" id="button1">
<xp:eventHandler event="onclick" submit="true"
refreshMode="partial" refreshId="dialog1" execMode="partial">
<xp:this.action><![CDATA[#{javascript:getComponent("dialog1").show();}]]></xp:this.action>
</xp:eventHandler>
</xp:button>
<xe:dialog id="dialog1" href="http://www.google.com" style="width: 400px; height: 400px;">
</xe:dialog>
</xp:view>
最佳答案
Dojo 对话框有一个 href 属性,您可以将其设置为要加载的页面的 url。 documentation在标题“External Dialog content using HREF attribute”下解释。
第一个3 hits链接到您需要的所有内容。
关于javascript - 如何将 html 文件加载到 XPages 中的 Dojo 对话框中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10133047/