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
AJAXAvailable (Function)
In French: AJAXDisponible
Used to find out whether the AJAX technology is supported by the current browser.
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 "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.
Components
WEBDEV - Browser code WDJS.DLL
Minimum required version
  • Version 10
Comments
Click [Add] to post a comment