Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
338 | schaersvoo | 1 | !! not needed any more replace by a modified wims m_help popup: see showmath.wims.phtml or showmath.java.phtml |
2 | !exit |
||
3 | |||
4 | !set n=$counter |
||
5 | !set width=140 |
||
6 | !set height=240 |
||
7 | !if $wordmax=$empty |
||
8 | !set wordmax=50 |
||
9 | !endif |
||
934 | schaersvoo | 10 | <script type="text/javascript"> |
338 | schaersvoo | 11 | function sendanswer() { |
837 | schaersvoo | 12 | var reply = document.getElementById("MathView").getLinear(); |
338 | schaersvoo | 13 | var test=reply.length(); |
14 | if (test == 0) |
||
15 | { |
||
16 | alert("You did not give an answer... \n You may always fill in a Questionmark ?"); |
||
17 | } |
||
18 | else |
||
19 | if (test > $wordmax) |
||
20 | { |
||
21 | alert("Your answer is too long... \n just $wordmax chars allowed here"); |
||
22 | } |
||
23 | else |
||
24 | { |
||
25 | !if $debug=1 |
||
26 | alert("We will send : "+reply+" \n as answer to the WIMS server"); |
||
27 | !endif |
||
28 | reply=encodeURIComponent(reply); |
||
29 | var URL = '$wims_ref_name?session=$session&+module=$module&+cmd=reply&+reply$n='+reply ; |
||
30 | document.location.href = URL; |
||
31 | } |
||
32 | } |
||
33 | </script> |
||
34 | |||
5857 | schaersvoo | 35 | <form name="inputmath" action="" > |
36 | <object id="MathView"width="$width" height="$height" classid="java:MathView.class type="application/x-java-applet;jpi-version=1.4"> |
||
37 | <param name="java_codebase" value="$appletdir" /> |
||
38 | <param name="java_archive" value="MathView.jar" /> |
||
39 | <param name="java_code" value="MathView.class" /> |
||
40 | $nojava |
||
5807 | schaersvoo | 41 | </object> |
42 | <br /> |
||
5944 | schaersvoo | 43 | <input type="button" style="$mybuttonstyle" value="$send" onclick="javascript:sendanswer();" /> |
338 | schaersvoo | 44 | </form> |
45 |