WebRespond: Quiz Web Page

The quiz web page displays any HTML code explaining the quiz and calls the applet WebRespond. You can specify the name of the master file as well as how much space the applet occupies on your web page.  There are two approaches to implementing Java in a web page.  The first is the APPLET tag and the second is to invoke a JAVA PLUG-IN.


Applet Tag method

The easiest way to set implement WebRespond using the Applet Tag is to modify the provided template file. If you are familiar with writing HTML or you have a program which makes HTML writing easy, you can use the following information to set up the applet correctly.

The following set of tags must be used to call WebRespond.

<APPLET ARCHIVE="wrespond.jar"
        CODEBASE="http://www.cedarville.edu/employee/gollmers/wrespond"
        CODE="WebRespond.class"
        WIDTH=500
        HEIGHT=350>
<PARAM NAME="name" VALUE="mstmplt.txt">
</APPLET>

Plug-In Method

The easiest way to implement WebRespond using the Plug-In Tag is to modify the provided template file. If you are familiar with writing HTML or you have a program which makes HTML writing easy, you can use the following information to set up the applet correctly.  You can also use Sun Microsystems, Inc. HTMLConverter 1.3 to change your web pages to implement the Java Plug-in.

The following code is used to call WebRespond with the Java Plug-in.  The portions highlighted indicate what parameters should be changed to accurately implement your quiz using WebRespond.

<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.3 -->
<SCRIPT LANGUAGE="JavaScript"><!--
    var _info = navigator.userAgent; var _ns = false;
    var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
//--></SCRIPT>
<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
    var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
//--></SCRIPT></COMMENT>

<SCRIPT LANGUAGE="JavaScript"><!--
    if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "500" HEIGHT = "350"  codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
    else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3"  CODE = "WebRespond.class" CODEBASE = ".." ARCHIVE = "wrespond.jar" WIDTH = "500" HEIGHT = "350" name = "sample.msf"  scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
//--></SCRIPT>
<APPLET  CODE = "WebRespond.class" CODEBASE = ".." ARCHIVE = "wrespond.jar" WIDTH = "500" HEIGHT = "350"></XMP>
<PARAM NAME = CODE VALUE = "WebRespond.class" >
<PARAM NAME = CODEBASE VALUE = ".." >
<PARAM NAME = ARCHIVE VALUE = "wrespond.jar" >

<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
<PARAM NAME = name VALUE ="sample.msf">

</APPLET>
<!-- Specify the name of the master file for the quiz -->

<!-- Use the ending Applet tag -->
</NOEMBED></EMBED></OBJECT>

<!--
<APPLET CODE = "WebRespond.class" CODEBASE = ".." ARCHIVE = "wrespond.jar" WIDTH = "500" HEIGHT = "350">
<PARAM NAME = name VALUE ="sample.msf">
<!-- Specify the name of the master file for the quiz -->

<!-- Use the ending Applet tag -->
</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->

These changes can be summaried with the following statements.


Example: Web Quiz Page

A sample web quiz page is included so you can become familiar with the look of the file. A link to the sample web quiz page is also included so you can try out WebRespond for yourself.
<TITLE>Quiz Using WebRespond v1.0</TITLE>       <!-- Give your web page a title -->     
<BODY BGCOLOR="#94c694">                         <!-- This begins the main body of the web
                                                     page and sets the background color to light gray. -->
<H2>Quiz Using WebRespond v1.0</H2>             <!-- Use any appropriate HTML code before calling WebRespond. -->
<HR>                                            <!-- This places a horizontal line before the applet. -->
<APPLET ARCHIVE="wrespond.jar"
        CODEBASE=".."
        CODE="WebRespond.class"
        WIDTH=500
        HEIGHT=350>                             <!-- This section of code calls WebRespond.
                                                     You may change the values of the width and height,
                                                     but the rest should remain unchanged unless you have
                                                     read the documentation for WebRespond. -->
<PARAM NAME=name VALUE="sample.msf">             <!-- This sets the name of the master file.
                                                     Once you generate your master file, replace
                                                     "sample.q1" with the name of your master file. --> 
</APPLET>                                       <!-- This ends the call to WebRespond. -->
<HR>                                            <!-- This places a horizontal line after the applet. -->
<P>If you have any questions about WebRespond, please
contact the author at <A HREF="mailto:gollmers@cedarville.edu">
gollmers@cedarville.edu</A>.<P>                 <!-- You can place any additional HTML code after this point. -->
</BODY>                                         <!-- This marks the end of the main body of the web page. -->