Graph Documentation - Interfacing with JavaScript | |
[ Home ] [ Products ] [ Downloads ] [ Purchase ] [ Support ] [ About Us ] |
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. For example to set data item 1 of series 1 to execute a JavaScript function "displayTable()" upon a mouse click the data item parameter would be:- <PARAM NAME="data1series1" VALUE="45,displayTable(),javascript"> 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> |