Applet Test

Searching from Javascript is a bit complex, as it will only work when a model is loaded. Therefore the JS world needs to know whether loading is finished, which is achieved by adding an applet parameter state.callback which is defining a Javascript function called each time the applet changes its internal state. Searching will only work if the state is Displaying.

Don't forget the mayscript applet attribute when using the callback option.

The appearance of the matches can be influenced by special attributes in the GUI description file..

The main methods for searching which can be accessed from Javascript are: