Up: Equation Input Control Documentation

WebEQ Equation Input Control Parameters

A typical Equation Input Control applet call looks like this:

    <applet codebase="classes"
            code="webeq.editor.PopUp"
            MAYSCRIPT name="popup"
            width=574 height=200>
    <param name=eq value="<math><mi>x</mi><mo>-</mo><mn>4</mn></math>">
    </applet>
The width and height can be set arbitrarily, but the natural width of the tool bar is 574.

WebEQ Equation Input Control applet recognizes several optional parameters:

name=eq
This parameter's value gives the markup for the initial equation to be displayed and edited. The value must be given in MathML.

name=remove_buttons
The value of this parameter is a list of space separated numbers between 0 and 21. Each number corresponds to a template on the editor toolbar, numbered starting from the left beginning with 0. The template buttons corresponding to numbers in the list given by the parameter value will not appear on the toolbar. This allows web application designers to customize the toolbar. For example, a designer might not want the matrix template to appear, in which case one would include '12' in the list.

name=bgcolor
This parameter sets the background color of the Equation Input Control and associated panels. Values should be specified as hexadecimal RGB values in the for '#rrggbb' or '#rgb', or using CSS2 color keywords, such as 'blue'.

name=dkbgcolor
This parameter sets the background accent color of the PopUp Editor and associated panels. Values should be specified as hexadecimal RGB values in the for '#rrggbb' or '#rgb', or using CSS2 color keywords, such as 'blue'.

name=fgcolor
This parameter sets the default font (foreground) color of the PopUp Editor and associated panels. Values should be specified as hexadecimal RGB values in the for '#rrggbb' or '#rgb', or using CSS2 color keywords, such as 'blue'.

name=title (Mac only)
When used on the Macintosh, the PopUp editor displays a "Title:" input field and a "submit" button at the bottom of the window. This parameter can be used to set the initial value of the title input field.

name=url (Mac only)
On a Macintosh, a "Submit" button appears at the bottom of the editor window. When the user clicks that button, the applet will make an HTTP request to the URL specified by this parameter, with the MathML markup for the current equation, and the value of the "Title" input field appended as CGI arguments. See Using the WebEQ Equation Input Control on Mac for further details.

When using the Equation Input Control, it is very important that you include the CODEBASE parameter in your applet start tag. You must have a copy of the ./classes directory from the WebEQ distribution available, and the relative path to the directory from your document needs to be specified with the CODEBASE parameter of the applet tag that starts the Equation Input Control.


[HOME] WebEQ 2.5 Documentation Table of Contents

Created: Aug 08 1997 --- Last modified: Wed Jul 19 11:29:15 2000
Copyright © 1997-2000 Design Science, Inc. All rights reserved.