Annotation of loncom/html/adm/dragmath/applet/MaximaPopup.html, revision 1.1
1.1 ! www 1:
! 2: <html>
! 3: <head>
! 4:
! 5: <script language="Javascript">
! 6:
! 7: var exp = opener.document.forms['lonhomework'].elements[opener.thenumber].value
! 8: document.write('<applet name="DragMath" codebase="classes" code="Display.MainApplet.class" archive="Project.jar,AbsoluteLayout.jar,swing-layout-1.0.jar,jdom.jar,jep.jar" width=540 height=333>',
! 9: '<param name=language value="en">',
! 10: '<param name=outputFormat value="Maxima">',
! 11: '<param name=openWithExpression value="' + exp + '">',
! 12: '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>',
! 13: '</applet>');
! 14:
! 15: var whichone;
! 16: function writedata()
! 17: {
! 18: whichone = opener.thenumber
! 19:
! 20: }
! 21:
! 22: function updateit()
! 23: {
! 24: var applet = document.DragMath;
! 25: var ans = document.DragMath.getMathExpression();
! 26:
! 27: opener.document.forms['lonhomework'].elements[whichone].value = ans
! 28: window.close()
! 29: }
! 30: </script>
! 31: <body onload="writedata()">
! 32:
! 33:
! 34: <form name="checkit">
! 35: <input type="hidden" cols="20" id="data" />
! 36: <br />
! 37: <input type="button" value="Save & Close" onclick="updateit()">
! 38: </body>
! 39: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>