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 (10 years, 6 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_X, 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.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DragMath Formula Editor</title>
<script type="text/javascript">
// <![CDATA[

var exp = opener.document.forms['lonhomework'].elements[opener.thenumber].value;
document.write('<applet name="DragMath" codebase="applet" code="Display.MainApplet.class" archive="DragMath.jar" width="540" height="333">',
                   '<param name="language" value="en" />',
                   '<param name="outputFormat" value="Maxima" />',
	     '<param name="openWithExpression" value="' + exp + '" />',
	     '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>',
	     '</applet>');

var whichone;
function writedata()
{
    whichone = opener.thenumber

}

function updateit()
{
    var applet = document.DragMath;
    var ans = document.DragMath.getMathExpression();  
    
    opener.document.forms['lonhomework'].elements[whichone].value = ans;
    window.close();
}

// ]]>
</script>
</head>
<body onload="writedata();">
<form name="checkit" action="">
<input type="hidden" id="data" name="data" />
<br />
<input type="button" value="Save &amp; Close" onclick="updateit()" />
</form>
</body>
</html>

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