FunScroll
Example 8 - Importing Data From a CGI Script
You can generate message lines from CGI scripts, specified using
the lineData parameter. Since a server that supports CGI is
required to run them, all you will see on this CD are error
messages. To actually see these applets with a cgi script go to
the applet author's site at
"http://www.algonet.se/~jannea/FunScroll/FunScroll.html"
.
The CGI script is in the first example is a simple PERL script
,who.cgi, to display the number of users who
are currently logged. The script is called when the applet is
initialized.
The CGI script in the second example is a simple shell script,
date.cgi, designed to display the current
time. The updateInterval parameter executes the CGI script at
specified intervals. In this case "1" is specified. In other words
the applet will read from the CGI script once per animation frame.



©1997 Hayden Books
>