Links/Clicks not working in Firefox after Using the Back button on an XPage

徘徊边缘 提交于 2020-01-05 07:57:24

问题


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>

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!

Thanks Aaron Brake 4CTechnologies


回答1:


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;
});

I hope that helps.




回答2:


Have you tried to set HTTP Header Cache-Control: no-cache, no-store?



来源:https://stackoverflow.com/questions/16610593/links-clicks-not-working-in-firefox-after-using-the-back-button-on-an-xpage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!