File:
[LON-CAPA] /
loncom /
html /
adm /
dragmath /
applet /
MaximaPopup.html
Revision
1.2:
download - view:
text,
annotated -
select for diffs
Sat Dec 28 23:15:35 2013 UTC (11 years, 1 month ago) by
raeburn
Branches:
MAIN
CVS tags:
version_2_11_X,
version_2_11_6_msu,
version_2_11_6,
version_2_11_5_msu,
version_2_11_5,
version_2_11_4_uiuc,
version_2_11_4_msu,
version_2_11_4,
version_2_11_3_uiuc,
version_2_11_3_msu,
version_2_11_3,
version_2_11_2_uiuc,
version_2_11_2_msu,
version_2_11_2_educog,
version_2_11_2,
version_2_11_1,
version_2_11_0_RC3,
version_2_11_0_RC2,
version_2_11_0,
HEAD
- Bug 6685
- Sign DragMath .jar files with InCommon code-signing cert from MSU
(expires Dec 4, 2014).
- Update to DragMath 0.7.9
- Installation mechanism now removes files from older DragMath version,
and follows similar mechanism to one used for MathJax etc.
- xhtml for EditMathPopup.html and MaximaPopup.html
- codebase changed from classes to applet (DragMath change: 0.72 to 0.7.9).
- EditMathPopup.html and MaximaPopup.html now installed in:
/home/httpd/html/adm/dragmath (paths in response.pm and
lonhtmlcommon.pm updated accordingly.
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">
3: <head>
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 + '" />',
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:
29: opener.document.forms['lonhomework'].elements[whichone].value = ans;
30: window.close();
31: }
32:
33: // ]]>
34: </script>
35: </head>
36: <body onload="writedata();">
37: <form name="checkit" action="">
38: <input type="hidden" id="data" name="data" />
39: <br />
40: <input type="button" value="Save & Close" onclick="updateit()" />
41: </form>
42: </body>
43: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>