In the applet form of the graph, any data item can be linked
to a JavaScript function within the current page via the URL and target elements.
To instruct the graph applet to execute a JavaScript function upon a mouse
click ( rather than URL ) the target element of the data item must be set to a value of "JavaScript".
The function to be executed should then be entered in the URL element of the
data item.
In
addition it is vital that "mayscript"
is present in the applet tag e.g,
<applet
code="LineGraphApplet.class" archive="Linegraph.jar"
width="500" height="420" mayscript>
For an example of the graph applet executing a JavaScript function please
click here.
|