Extend Partial Refresh Timeout

 <xp:scriptBlock id="scriptBlock1">
  <xp:this.value><![CDATA[XSP.addOnLoad(function(){
XSP.submitLatency = 20*1000;
});]]></xp:this.value>
 </xp:scriptBlock>





Extends the timeout to 20 x 1000 milliseconds, using XSP.submitLatency(). Useful for reports or sites with heavy network latency. I can't remember if this timeout interval remains just for the page or for the whole application. If the latter, you could put this in a layout custom control compute the figure ("20" here) to a custom control property. Remember defaults can also be set for custom control properties, but custom properties do not apply retrospectively to XPages previously created.

I keep searching for XSP.setTimeout, so hopefully next time it will get me here!

XPages
Paul S Withers
March 7, 2014 8:38 AM
Rating
124

All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.



No comments yetLogin first to comment...