Up: Equation Input Control Documentation

Getting Started with the Equation Input Control

  1. Download and install the WebEQ Math Viewer applet in your browser if you haven't already done so. The applet is freely available from www.mathtype.com. The Math Viewer installation also contains most of the files for the Equation Input Control, and it will greatly speed up starting the Editor.

    Note, however, that the Math Viewer does not contain all of the Equation Input Control program files. To use the Equation Input Control, you must have a copy of the ./classes directory from the WebEQ distribution available, and the relative path from your document to that directory must be specified with the CODEBASE parameter of the applet tag that starts the Equation Input Control.

  2. Open the file popup.html in the templates directory of your WebEQ installation with your favorite text editor.

  3. Open the same file in your Web browser, so that you can see the effects of the changes you make. (Make sure Java is enabled in your browser.) Initially, you should see the Equation Input Control and a sumbit button on a gray page. The Editor should be displaying "x-4".

  4. Remove the line
    <param name=eq value="<math><mi>x</mi><mo>-</mo><mn>4</mn></math>">
    
    from the applet code, and save the file. Reload the applet in your browser, and notice the effect. (Note that sometimes you will have to hold down SHIFT when you click "Reload" in order to really have the browser reload the page, as opposed to using the cached copy of the original page.)

  5. Look at the JavaScript do_mml() function in the document head. Try uncommenting the lines which query the Equation Input Control for MathML in various formats.

  6. To see how to connect the Equation Input Control to the Command-line Page Wizard to do server-side processing, look at the demo in the templates directory of your WebEQ installation. The demo uses popup.html and catch.cgi to dynamically generate an image of the equation in the editor.

    Note: This demo will only run through a web server. You will need edit popup.html and catch.cgi to reflect the actual paths on your system, and to do whatever you need to on your server to make catch.cgi executable, and give the web server write priveleges to the tmp directory. See the Command-line Page Wizard Documentation for more information about using WebEQ on a server.


[HOME] WebEQ 2.5 Documentation Table of Contents

Created: Aug 08 1997 --- Last modified: Wed Sep 13 17:13:51 2000
Copyright © 1997-2000 Design Science, Inc. All rights reserved.