AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar una aplicación o un sitio web / Características específicas de WEBDEV
  • Overview
  • How to?
  • Defining an automatic data refresh
  • Use conditions
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Advertencia
A partir de la versión 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 "Página" pane, in the "Descripción" group, click on "Descripción"..
  3. On the "General" tab, check "Actualizar datos del servidor al navegador cada " 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
Versión mínima requerida
  • Versión 19
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

Señalar un error o enviar una sugerencia | Ayuda local