Go to previous pageGo to next page

1.3.3. Server-Side Interactivity

Server-side interactivity is processed on the server-side. For each interaction, a connection to the server has to be made. The interactivity is controlled by some technology that lies on the server itself.

The following example contains server-side interactivity. If you click on the black rectangle, three coloured circles are loaded from a file on the server. This file can only be executed if it is stored on a server.

In this case too, it is easy to proof, that the interactivity is server-side and needs connection to the server (this exercise is optional): Store (right mouse click on the links and choose "Save target as...") the following files in your temp folder on your computer (all files have to be in the same folder):

Open the "index.svg" file in a browser. You will see, that the coloured circles will not appear anymore if you click on the rectangle. That is, because the script (here PHP) that provides the circles can only be executed on the server.

Typical server-side interactions are:

  • Database queries
  • Read and write files and directories
  • GIS computations


Go to previous page
Go to next page