Used to find out whether the AJAX technology is supported by the current browser.
// Is AJAX supported by the current browser?
IF AJAXAvailable() = True THEN
// Run the server procedure named "MyProc"
// As soon as the result of "MyProc" becomes available,
// the "ProcResult" procedure will be run
Res is int
Res = AJAXExecuteAsynchronous(MyProc, ProcResult)
// The following processes are run without waiting for the result
...
ELSE
// Processes without using AJAX
...
END
Syntax
<Result> = AJAXAvailable()
<Result>: Boolean
- True if the AJAX technology is supported by the current browser,
- False otherwise.
Remarks
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).