An AJAX page is an HTML document. Typically it contains JavaScript to manage interactions between the application server and the user interface.
For example, an HTML page may display a “Search” button on the user interface.
When the user clicks it, JavaScript code (executing on the client PC) assembles a request and sends it to the application server.
The AJAX function (executing on the server) receives the request, processes it, and sends back a response.
The JavaScript code in the AJAX page receives the response and updates the user interface, for example by dynamically displaying a list of customers.
There are two significant things about this interaction:
AJAX functions are normal RDML or RDMLX functions, so they are architecturally different from WAMs. They have no user interface capabilities. There only purpose is to receive information from and return information to AJAX page(s).
The information is received and returned as pure data.
The AJAX page manages how the information is input by, or displayed to, the user.
AJAX pages reside on your web server, typically in your Framework private folder while you are doing development.
AJAX functions reside on your application server.
Typically your web server and application server are on the same computer.
The JavaScript in AJAX pages executes inside a web browser on a client PC.
The RDML or RDMLX code inside an AJAX function executes on your application server.
Very rarely do your web browser and application server reside on the same computer. The most notable exception is when you are developing applications using the VL-IDE on your PC and executing them under the IIS web server which is also executing on your PC.