PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Functions for AJAX management
  • Procedures that can be called by AJAX
  • WLanguage functions useless in AJAX
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
Overview
The diagram below presents the use of "programmed AJAX" in a WEBDEV site:
Running a browser process (AJAXExecute or AJAXExecuteAsynchronous).
Request for running a server procedure.
Running the server procedure.
Generating the result. The procedure result will be contained in a character string or in an XML document.
Sending the procedure result (RESULT keyword).
Studying the procedure result.
Displaying the modified information. Only the necessary controls are refreshed.
Functions for AJAX management
Several AJAX functions can be used to manage the complex processes in WEBDEV:
AJAXAvailableUsed to find out whether the AJAX technology is supported by the current browser.
AJAXExecuteRuns a server procedure without refreshing the page. This function is locking. No process will be run as long as the procedure result run is not retrieved.
AJAXExecuteAsynchronousRuns a server procedure without refreshing the page. This function is not locking. The other processes continue to run (no matter whether the result of the procedure run is retrieved or not).
AJAXAsynchronousCallPendingUsed to find out whether a server procedure called by AJAXExecuteAsynchronous is currently run.
AJAXCancelAsynchronousCallCancels the automatic execution of browser procedure called by AJAXExecuteAsynchronous.
These functions allow you to run a server procedure from a browser process.
Caution: The information stored on the server must be consistent with the information displayed on the Web user's computer. For example, if data is modified, this data must be modified both on the server and on the page displayed in the browser.
Procedures that can be called by AJAX
To secure the WEBDEV sites, the server procedures are protected from illegal calls (attempt to re-route a session for example). To run a server procedure from a browser process (AJAXExecute or AJAXExecuteAsynchronous), you must allow this procedure to be called by AJAX.
To allow a server procedure to be called by AJAX, all you have to do is click "AJAX" in the bar of the procedure:
Procedure that cannot be called by AJAX
Procedure that cannot be called by AJAX
Procedure that can be called by AJAX
Procedure that can be called by AJAX
WLanguage functions useless in AJAX
All the functions available in WEBDEV server can be used in AJAX. However, the folllowing functions are useless in AJAX. Therefore, these functions are not available in AJAX.
StringDisplayDisplays a character string (or a buffer) in the browser.
ContextCloseCloses a page context
ContextOpenOpens a new page context without returning the information to the browser.
FileDisplayDisplays a file in the browser of Web user.
FramesetRefreshRefreshes a frameset displayed in the browser of the Web user from the context found on the server.
FramesetDisplayDisplays a WEBDEV frameset in the browser of Web user.
FramesetUseDisplays a WEBDEV frameset in the browser of the Web user and closes all the current page and frameset contexts.
InitWindowResets (or not) the controls found in the current page and runs the initialization processes of controls.
PageInitializationResets (or not) the controls found in the current page and runs the initialization processes of controls.
PageUseDisplays a WEBDEV page in the browser of the Web user and closes all the current page contexts.
ScriptDisplayCalls an external script (.php, .asp, .mhtml or .mht) and returns the result page in the current browser window.
UploadCopyFileSaves on the server a file "uploaded" by the Web user.
UploadFileNameReturns the name of a file "uploaded" by the Web user.
UseDisplays a page in the browser of Web user.
This list can evolve. We recommend that you check the documentation for each function. The logo indicates whether the function is available in AJAX.
Minimum required version
  • Version 10
Comments
Click [Add] to post a comment