Ajax Gears Demo - How to chain GET and POST Requests

The purpose of this demo is to show how you can chain several Ajax requests asynchronously.

It makes use of a PHP script as the POST demo page does. Note the PHP file will not be stored locally, as Gears can not handle PHP scripts. This part of the demo uses legacy Ajax and works online only.

  1. Data are sent to the server.
  2. A script on the server stores them into a text file.
  3. The next request reads this file.

The goal is to deliver data to a program on the server for performing some processing m and then to retrieve the results.
For security issue, the name of this data file must always be defined on the server and identified by the script.

Demonstration: Type a text below (or change the default text), it will be just converted to uppercases on the server by the PHP script and displayed on this page below the form.

Empty.

(c) Scriptol.com