Skip to content

NEW 2022

UPD 2023/02
(3rd parameter autoHideNavBar)

Page Auto Reloader

Shows a (green) timer-bar at the bottom left and automatically reloads the current page after 60 seconds.

1
2
3
4
// file: hooks/header-extras.php
<script>
AppGiniHelper.getCommon().autoReload(60, 10, false);
</script>

The timeout automatically resets on user interaction, for example mouse-move, iput or click.

The timer-bar can be paused, resumed or stopped. Buttons automatically apear on mouseover.

Green bar will automatically turn orange m seconds before reload (Warning-Time).

TODO JSE: ggf. Video

Syntax

1
AppGiniHelper.getCommon().autoReload(TimeoutSeconds, WarningSeconds, AutoHideNavBar);

Parameters

  1. Timeout in seconds (Default: 60)
  2. Warning-Time in secods (Default: 10)

Since 2023/02:

  1. Auto-hide navigation bar (Default: true) after 5 seconds
    { true | false }

Tip

  • This feature can also be used in Custom Pages. This can be useful in custom dashboards showing charts or KPI's, auto-reloading after n seconds, for example.

See also