Used to determine if the request being processed is an AJAX request.
IF NOT AJAXCallInProgress() THEN
// Fill the chart
<Result> = AJAXCallInProgress()
- True if the request being processed is an AJAX request,
- False otherwise.
Difference with InAJAXMode
is different from InAJAXMode
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.
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