File:
[LON-CAPA] /
loncom /
html /
adm /
dragmath /
applet /
MaximaPopup.html
Revision
1.1:
download - view:
text,
annotated -
select for diffs
Fri May 30 16:04:37 2008 UTC (16 years, 2 months ago) by
www
Branches:
MAIN
CVS tags:
version_2_9_X,
version_2_9_99_0,
version_2_9_1,
version_2_9_0,
version_2_8_X,
version_2_8_99_1,
version_2_8_99_0,
version_2_8_2,
version_2_8_1,
version_2_8_0,
version_2_7_X,
version_2_7_99_1,
version_2_7_99_0,
version_2_7_1,
version_2_7_0,
version_2_6_99_1,
version_2_6_99_0,
version_2_11_0_RC1,
version_2_10_X,
version_2_10_1,
version_2_10_0_RC2,
version_2_10_0_RC1,
version_2_10_0,
loncapaMITrelate_1,
language_hyphenation_merge,
language_hyphenation,
bz6209-base,
bz6209,
bz5969,
bz2851,
PRINT_INCOMPLETE_base,
PRINT_INCOMPLETE,
HEAD,
GCI_3,
GCI_2,
GCI_1,
BZ5971-printing-apage,
BZ5434-fox,
BZ4492-merge,
BZ4492-feature_horizontal_radioresponse
Bug #5713: Dragmath
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>