使用XPage上的“后退”按钮后,链接/点击在Firefox中无法使用 [英] Links/Clicks not working in Firefox after Using the Back button on an XPage

查看:121
本文介绍了使用XPage上的“后退”按钮后,链接/点击在Firefox中无法使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现XPages在加载Firefox时有奇怪的怪癖,我似乎无法摆脱。在我的XPage上,有一个viewPanel,其中一列是这样定义的:

I'm finding that XPages I have, when loaded in Firefox, have an odd quirk that I can't seem to get around. On my XPage, there is a viewPanel, in which one of the columns is defined as such:

<xp:viewColumn styleClass="viewAction" id="View">
 <xp:this.value><![CDATA[#{javascript:""}]]></xp:this.value>
 <xp:viewColumnHeader value="View" id="viewColumnHeader2">
 </xp:viewColumnHeader>
 <xp:image url="/imgs/viewBtn.png" id="image2" styleClass="linkImg">
  <xp:eventHandler event="onclick" submit="true" refreshMode="complete">
   <xp:this.action>
    <xp:openPage name="/Inspection.xsp" target="openDocument" documentId="#javascript:InspectionDoc.getDocument().getUniversalID();}">
    </xp:openPage>
   </xp:this.action>
  </xp:eventHandler>
 </xp:image>
</xp:viewColumn>

当我点击此链接并转到下一页时,它加载正常。但是,如果我在Firefox中使用后退按钮,并尝试再次单击此链接,则不会发生任何反应。链接只需点击10-15秒就可以执行任何操作,直到那个时候没有任何操作排队。页面上的其他元素也同样如此,包括带有点击事件的链接,以及带有更改事件的组合框,但奇怪的是,我的dojo下拉菜单可以立即工作。

When I click this link and go to the next page, it loads fine. If I use the Back button in Firefox ONLY, however, and try to click in this link again, nothing happens. It takes about 10-15 seconds for the link to do anything once clicked, and no action is queued until that time. The same goes for other elements on the page, including Links with click events, and a combo box with an on change event, but strangely enough, my dojo dropdown menus work immediately.

希望有人看到这个,或者有一个想法我可以给一个镜头!

Hoping someone else has seen this, or has an idea I can give a shot!

感谢
Aaron Brake
4CTechnologies

Thanks Aaron Brake 4CTechnologies

推荐答案

XSP对象具有名为submitLatency的属性,默认设置为20秒。这可能是你的问题。其目标是让您的最终用户不要两次提交表单并运行您的业务逻辑两次。您可以使用以下方式更改submitLatency字段:

The XSP object has this property called submitLatency, it has a default setting of 20 seconds. This is probably your problem. The goal of it is to keep your end users from submitting the form twice and running your business logic twice. You can change the submitLatency field by using:

XSP.addOnLoad(function() {
XSP.submitLatency = 1000;
});

我希望有帮助。

这篇关于使用XPage上的“后退”按钮后,链接/点击在Firefox中无法使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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