ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Page functions
  • Using PageRefresh in a event in AJAX mode
  • Pre-launched sessions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Refreshes a page displayed in the user's browser from the context on the server. This function is mainly used for sites in Session mode.
Caution: The page context must exist on the server. The page context is created by PageDisplay and ContextOpen. All the events linked to the page or to the controls have already been run.
Example
// Refresh PAGE_Page1
PageRefresh(PAGE_Page1)
Syntax
PageRefresh([<Page>])
<Page>: Page name
Name of the page to refresh.
If this parameter is not specified or is an empty string (""), the page name corresponds to the page related to the current event.
Remarks

Using PageRefresh in a event in AJAX mode

Reminder: AJAX is used to refresh the data modified in an HTML page without redisplaying the entire page. For more details, see AJAX.
If PageRefresh is used in an event in AJAX mode ("AJAX enabled" is displayed in the event bar) and if this event is used to solely or systematically refresh a page, the AJAX technology becomes useless. In AJAX mode, PageRefresh must be reserved for special cases.
During a long process, AJAXExecuteAsynchronous allows you to display a wait message.

Pre-launched sessions

If your project uses pre-launched sessions, this function must not be used in the project initialization event. This function must be used in the "Initialization in pre-launched session mode" event.
Component: wd300page.dll
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 07/02/2024

Send a report | Local help