|
|
|
|
|
- Overview
- AJAX 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 website:
| | | Execution of a process on the browser side (AJAXExecute or AJAXExecuteAsynchronous). | | Request to execute a procedure on the server side. | | Execute 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. |
Several AJAX functions can be used to manage the complex processes: These functions allow you to run a server procedure from a browser process. Attention It is necessary to ensure consistency between information stored on the server and that displayed on the 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 websites, 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, click the "AJAX" word in the procedure bar:  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 user's browser. | 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|