ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Ajax functions
  • Reminder
  • Older browsers
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
AJAXAsynchronousCallPending (Function)
In french: AJAXAppelAsynchroneEnCours
Determines if a server procedure called by AJAXExecuteAsynchronous is being executed.
Example
// Is AJAX supported by the current browser?
IF AJAXAvailable() = True THEN
// Run the server procedure named "MyProc"
// As soon as the result of the "MyProc" server procedure
// will be available,
// the "ProcResult" browser procedure will be run
Res is int
Res = AJAXExecuteAsynchronous(MyProc, ProcResult)
// The following processes are run without waiting for the result
...
// Progress of the server procedure named "MyProc"
IF AJAXAsynchronousCallPending(Res) = True THEN
// Cancel the execution
// of the "ProcResult" browser procedure
// The result of the "MyProc" server procedure
// cannot be processed
AJAXCancelAsynchronousCall(Res)
END
ELSE
// Processes without using AJAX
...
END
Syntax
<Result> = AJAXAsynchronousCallPending(<Identifier of server procedure>)
<Result>: Boolean
  • True if the specified server procedure is currently run,
  • False otherwise.
<Identifier of server procedure>: Integer
Identifier of the server procedure to use. This identifier was defined by AJAXExecuteAsynchronous.
Remarks

Reminder

AJAXCancelAsynchronousCall is used to cancel the automatic execution of the browser procedure called by AJAXExecuteAsynchronous.

Older browsers

AJAXAvailable is used to determine if the current browser supports AJAX technology. If a process that uses AJAX is run on a browser that does not support this technology, the process is run "as if" it did not use AJAX (e.g., the entire page is refreshed).
Component: WDJS.DLL
Minimum version required
  • Version 10
Comments
Click [Add] to post a comment

Last update: 01/11/2023

Send a report | Local help