Extend Partial Refresh Timeout

 <xp:scriptBlock id="scriptBlock1">
XSP.submitLatency = 20*1000;

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!

Paul S Withers
March 7, 2014 8:38 AM

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...