ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / WEBDEV specific features
  • Overview
  • How to?
  • Defining an automatic data refresh
  • Use conditions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
From version 26, this feature is kept for backward compatibility.

Browsers do not always support Server-sent events (SSE).
This feature can still be used if you master the browsers used, in a secure intranet for example, and if it suits the needs of the site.
In the case of a public site, timer browsers should be used.
Overview
In a dynamic WEBDEV site, the page data is refreshed during a user action.
In certain cases, it may be necessary to refresh some of the information contained on this page, without any intervention on the part of the web user: for example, a counter of e-mails received or a stock level.. Multiple methods are available:
  • Use a browser timer to refresh the page or call a server procedure in AJAX.
  • Use the option for automatic refresh of the page. This mechanism is based on the "Server-sent events" technology (SSE). This technology allows the session (server side) to initiate the transmission of data toward the browser once the initial connection is implemented.
How to?

Defining an automatic data refresh

To define an automatic data refresh in a page:
  1. Open the desired page in the page editor.
  2. Display the page description window: under the "Page" pane, in the "Description" group, click on "Description"..
  3. On the "General" tab, check "Update data from server to browser every " and specify the refresh period (in seconds).
  4. Validate.
  5. Display the events associated with the page (F2 on the page for example).
  6. Two new events are available:
    • Page data refresh (server code): This event is executed when the page is refreshed.. For example, it can be used to update desired fields: filling a list, etc. This event is an Ajax event.
    • After page data refresh (browser code): This event is executed after the "Page data refresh (server code)" event on the. It is used to perform an additional process on the browser.
    Note: If the "Refresh page data (server code)" event returns True (SEND True), the browser code is executed (default case).. Otherwise, the browser code will not be run.
Attention: For the refresh code to be executed, the refresh period entered must be less than the site lifetime timeout..
Reminder: The session lifetime corresponds to the "Disconnect users inactive since..." parameter specified in the WEBDEV Application Server administrator ("Configuration" tab).

Use conditions

This option is available for the dynamic WEBDEV sites developed in HTML5 and operating on the following types of browsers:
  • Google Chrome: All versions
  • Mozilla Firefox: Firefox 6.0 and higher
  • Opera: From Opera 11
  • Safari: From Safari 5.0 onwards
  • Internet Explorer: Not supported (IE 11 included)
  • Edge: Not supported
Minimum version required
  • Version 19
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help