Annotation of loncom/html/adm/dragmath/applet/MaximaPopup.html, revision 1.2

1.2     ! raeburn     1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        !             2: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1.1       www         3: <head>
1.2     ! raeburn     4: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        !             5: <title>DragMath Formula Editor</title>
        !             6: <script type="text/javascript">
        !             7: // <![CDATA[
        !             8: 
        !             9: var exp = opener.document.forms['lonhomework'].elements[opener.thenumber].value;
        !            10: document.write('<applet name="DragMath" codebase="applet" code="Display.MainApplet.class" archive="DragMath.jar" width="540" height="333">',
        !            11:                    '<param name="language" value="en" />',
        !            12:                    '<param name="outputFormat" value="Maxima" />',
        !            13: 	     '<param name="openWithExpression" value="' + exp + '" />',
1.1       www        14: 	     'To use this page you need a Java-enabled browser. Download the latest Java plug-in from <a href="http://www.java.com">Java.com</a>',
                     15: 	     '</applet>');
                     16: 
                     17: var whichone;
                     18: function writedata()
                     19: {
                     20:     whichone = opener.thenumber
                     21: 
                     22: }
                     23: 
                     24: function updateit()
                     25: {
                     26:     var applet = document.DragMath;
                     27:     var ans = document.DragMath.getMathExpression();  
                     28:     
1.2     ! raeburn    29:     opener.document.forms['lonhomework'].elements[whichone].value = ans;
        !            30:     window.close();
1.1       www        31: }
1.2     ! raeburn    32: 
        !            33: // ]]>
1.1       www        34: </script>
1.2     ! raeburn    35: </head>
        !            36: <body onload="writedata();">
        !            37: <form name="checkit" action="">
        !            38: <input type="hidden" id="data" name="data" />
1.1       www        39: <br />
1.2     ! raeburn    40: <input type="button" value="Save &amp; Close" onclick="updateit()" />
        !            41: </form>
1.1       www        42: </body>
                     43: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>