ScriptListener Applet Test

ScriptListener Physlet

Drag the ball.  Notice that JavaScript will update the table whenever the ball moves.  Drag the ball past negative 10 and observe what happens.

The ScriptListener Physlet is designed to listen to a data source and invoke a JavaScript function in response changes in the data source.  ScriptListener has been tested with the Animator Physlet but is still beta with all other Physlets.

In order it to function properly on both Internet Explorer and Netscape, careful attention needs to be paid to the following:

The ScriptListner will respond whenever the data listener receives data, a clearSeries, or a deteteSeries message from a data source.  You can use multiple ScriptListers that have been customized to respond to only certain data source events using the following methods: