ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
  • Difference with InAJAXMode
  • Availability of the function
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
Used to determine if the request being processed is an AJAX request.
Example
IF NOT AJAXCallInProgress() THEN
// Fill the chart
...
END
Syntax
<Result> = AJAXCallInProgress()
<Result>: Boolean
  • True if the request being processed is an AJAX request,
  • False otherwise.
Remarks

Difference with InAJAXMode

AJAXCallInProgress is different from InAJAXMode. InAJAXMode returns True during the AJAX action (the process or procedure) and returns False in the other cases.
In Active WEBDEV Pages, the initialization code of the project, classes, sets of procedures, page and controls is also executed at each call. During these initializations:
  • InAJAXMode returns False.
  • AJAXCallInProgress returns True.
AJAXCallInProgress also returns True in the closing code of the project, classes, sets of procedures, pages, etc.
AJAXCallInProgress allows you to make optimizations by ignoring some unnecessary initializations during the call.

Availability of the function

AJAXCallInProgress can be used in all IDEs to allow for cross-platform code. Functions or procedures that use AJAXCallInProgress can be shared between several products without generating any compilation error.
Business / UI classification: Neutral code
Component: wd290vm.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help