|
When a reader tries to look at an HTML page containing WebEQ Math Viewer applet tags, the reader's Web browser must load and run the Math Viewer applet. If the browser has a copy of the WebEQ Math Viewer archive installed, it will use that local copy. However, if no archive file is found, the browser will automatically contact the server again, and attempt to download the Math Viewer program files. In order to know where to find the applet program files, the
browser looks at the value of the As with URLs in links, the
or a relative URL such as
If you are a webmaster, installing WebEQ for a number of users, it will generally be simpler to put one copy in a central location. On the other hand, if you simply posting pages on a server you don't control, it will be easier to put WebEQ somewhere nearby in you file area. In order to simplify the preparation of web pages with WebEQ
applets that will be distributed on a server, most authors will want
to put a copy of the WebEQ When placing the WebEQ The default location of the
If you used an alternate installation directory or are using WebEQ on a Macintosh or a UNIX system, replace
with the directory that you used for your installation. Example: Individuals Individuals typically make a copy of the WebEQ
Note that if you move the HTML files to
another directory, you will need to move the classes directory along
with them. Alternatively, you will need to change the value of As an example, assume that you have made a copy of the directory
in a directory called
htmlfiles
|
-------------------------------
| | |
classes file1.html subdirectory
|
file2.html
An applet call in file1.html would look like this:
<APPLET CODEBASE="classes" CODE="webeq.Main"
WIDTH=400 HEIGHT=200>
<PARAM NAME=eq
VALUE="x = \frac{-b \pm \sqrt{b^2 -4ac}}{2a}">
</APPLET>
An applet call in file2.html would use
CODEBASE="../classes"
Example: WebmastersWebmasters typically make a single copy of the WebEQ
Suppose a server with the address
http://www.myserver.edu
has the directory C:\www on the local file system specified as the
Web root. That is, a file C:\www\foo.html corresponds to the URL
http://www.myserver.edu/foo.html
Then one might copy the classes directory to
C:\www\classes, and then all HTML files containing WebEQ
calls could specify that absolute URL for the CODEBASE:
<applet code="webeq.Main"
codebase="http://www.myserver.edu/classes" ...>
...
</applet>
The main advantage is that such an applet call would work for any HTML page on the site, regardless of it's location relative to the "classes" directory on the file system, and HTML files can be moved, even to another server, without changing the codebase. The main disadvantage is that this would not work if one were
to open an HTML page as a file with a Web browser, since the
browser would not know how to translate the absolute URL. This
difficulty can be avoided by using a relative directory name for the
In the example above, the equivalent relative URL is just
<applet code="webeq.Main"
codebase="classes" ...>
...
</applet>
since foo.html and the classes directory are
both located in C:\www.
|
WebEQ 2.5 Server Software Documentation
Created: Aug 08 1997 ---
Last modified: Sun Jul 23 20:07:01 2000
Copyright © 1997-2000 Design Science, Inc.
All rights reserved.