timeout event

Previous Next

You can use the timeout event to influence application behavior after the user has remained inactive for a specified amount of time.

This applies when the user did not perform any clicking or typing action leading to a server call during that time. Actions leading to a server call include new queries and commits.

The default application behavior is that in such a case, the login page is displayed.

The following code replaces this by an alert message:

$("body").on("timeout", function(evt, options) { 

  alert("This is the timeout event"); 



NOTE: The timeout event is different from other top-level events in that it is bound to the entire application. Therefore it is attached directly to the body element of the HTML document, as the example shows.


See also

Top-level Events