[ Back to install ]

PlayerStats

Using multiple files

It's possible to display more than one datafile in PlayerStats. Then you don't have to put different datafiles on different web pages. To load additional datafiles into PlayerStats (aside from the one given in the Datafile parameter) you use the function showFile() which can be called from JavaScript (if you want to learn about JavaScript check out this link collection). showFile() downloads and displays a new datafile. Because the data is transported across the net there can be a small delay before the datafile is displayed. If the datafile has already been downloaded it will be displayed immediately.

In order to use showFile(), you need to give the applet a name. This is done in the APPLET-tag and looks like this:

<APPLET CODE="embe.ps.PlayerStats.class" NAME="PlayerStats" WIDTH=545 HEIGHT=375>
                                         ^^^^^^^^^^^^^^^^^^ 

When you call showFile() you write like this:

document.PlayerStats.showFile('nameOfDatafile')

nameOfDataFile is the name of the datafile you want to load.

This is an example where multiple datafiles are used in an applet.

[ Back to install ]
Copyright © 1998 Mats Bovin.
Comments can be sent to mats-bov@dsv.su.se