Xpages 应用程序布局中的onClick事件横幅
我有一个应用程序布局与图像作为横幅。是否可以将带有onclick事件的事件处理程序绑定到横幅中的图像Xpages 应用程序布局中的onClick事件横幅,xpages,Xpages,我有一个应用程序布局与图像作为横幅。是否可以将带有onclick事件的事件处理程序绑定到横幅中的图像 <xe:applicationLayout id="applicationLayout1"><xp:this.facets></xp:this.facets> <xp:callback facetName="facetMiddle" id="facetMiddle"></xp:callback>
<xe:applicationLayout id="applicationLayout1"><xp:this.facets></xp:this.facets>
<xp:callback facetName="facetMiddle" id="facetMiddle"></xp:callback>
<xe:this.configuration>
<xe:oneuiApplication productLogo="/ise_logo.png"
productLogoHeight="70px" productLogoWidth="250px">
<xe:this.bannerUtilityLinks>
</xe:this.bannerUtilityLinks>
<xe:this.titleBarTabs>
</xe:this.titleBarTabs>
<xe:this.footerLinks>
</xe:this.footerLinks>
</xe:oneuiApplication>
</xe:this.configuration>
</xe:applicationLayout>
使用
productLogoClass=“applicationLogo”
将类作为应用程序布局横幅的参数添加到徽标中
然后在客户端加载时为该类添加客户端onclick事件
var applicationLogo= dojo.query('.applicationLogo')[0];
applicationLogo.onclick = function() {
alert('clicked on logo');
}
在客户端事件代码中,可以使用XSP.partialRefreshGet或XSP.partialRefreshPost执行部分刷新,如图所示