|
|
|
|
- Overview
- AJAX management functions
- Procedures that can be called by AJAX
- WLanguage functions useless in AJAX
The diagram below presents the use of "programmed AJAX" in a WEBDEV site:
| | | Execution of a browser process (AJAXExecute or AJAXExecuteAsynchronous). | | Request to execute a server procedure. | | Execution of the server procedure. | | Generation of the result. The result of the procedure will be expressed as a character string or an XML document. | | Sending of the procedure result (RETURN keyword). | | Analysis of the procedure result. | | Refresh modified data. Only the necessary controls are refreshed. |
AJAX management functions Several AJAX functions can be used to manage the complex processes in WEBDEV: 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 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. | | ContextClose | Closes a page context | ContextOpen | Opens a new page context without returning the information to the browser. | FileDisplay | Displays a file in the browser of Web user. | FramesetDisplay | Displays a WEBDEV frameset in the user's browser. | FramesetRefresh | Refreshes a frameset displayed in the user's browser from the context on the server. | FramesetUse | Displays a WEBDEV frameset in the browser of the Web user and closes all the current page and frameset contexts. | InitWindow | Resets (or not) the controls found in the current page and runs the initialization processes of controls. | PageInitialization | Resets (or not) the controls found in the current page and runs the initialization processes of controls. | PageUse | Displays a WEBDEV page in the browser of the Web user and closes all the current page contexts. | ScriptDisplay | Calls an external script (.php, .asp, .mhtml or .mht) and returns the result page in the current browser window. | StringDisplay | Displays a character string (or a buffer) in the browser. | UploadCopyFile | Saves on the server a file "uploaded" by the Web user. | UploadFileName | Returns the name of a file "uploaded" by the Web user. | Use | Displays a page in the browser of Web user. |
This list can evolve. It is recommended to check the documentation for each function. The  logo indicates whether the function is available in AJAX.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|