PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
AJAXAsynchronousCallPending (Function)
In French: AJAXAppelAsynchroneEnCours
Allows you to find out whether a server procedure called by AJAXExecuteAsynchronous is currently run.
Note: The former browsers do not support the AJAX technology (Internet Explorer 5.5 and later, FireFox 1.0 and later, Netscape 7 and later, Opera 8 and later, Safari 1.2 and later, ...). AJAXAvailable is used to find out whether the AJAX technology is supported by the current browser. If a process that is using the AJAX technology is run on a browser that does not support this technology, the process is run "as if" it did not use the AJAX technology (the entire page is refreshed for example).
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
AJAXCancelAsynchronousCall is used to cancel the automatic execution of the browser procedure called by AJAXExecuteAsynchronous.
Components
WEBDEV - Browser code WDJS.DLL
Minimum required version
  • Version 10
Comments
Click [Add] to post a comment