FunScroll - Example 8

In these examples we generate the message lines, from CGI scripts. The CGI scripts are specified using the cgi parameter. The cgi parameter must be specified, using a full path and must reside on the same machine as where the applet was loaded from.

This feature can be used to create true real-time "ticker tapes".

Note 1: I'm not a CGI-programmer, so please don't ask me any CGI-related questions...

Example 8a

The CGI script is in this example is a simple shell script (date.cgi) to display the current time.

Note the usage of the updateInterval parameter to execute the CGI script at specified intervals. In this case we specify "1". I.e we read from the CGI script once per animation frame.