Debian Codegraph @

texmf-dist/doc/latex/interactiveworkbook/epsfiles/checksubmit.eps

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %
3 % CHECK SUBMIT BUTTON: COMPARE "GUESSED" QUESTION TAKER ANSWER WITH
4 % "CORRECT" QUESTION GIVER ANSWER AND
5 % THEN GO TO CORRECT RESPONSE (PAGE 1) OR
6 % INCORRECT RESPONSE PAGE (PAGE 2) , ACCORDINGLY
7 %
8 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9 %!PS-Adobe-3.0 EPSF-3.0
10 %%BoundingBox: 0 0 90 30
11 %%EndProlog
12 [
13 /T (Check_Submit_Button)
14 /Rect [0 0 90 30]
15 /Subtype /Widget
16 /F 4
17 /FT /Btn
18 /Ff 65540
19 /H /P
20 /AP << /N {Submit_Up} /D {Submit_Down} >>
21 /Action <<
22 /Subtype /JavaScript
23 /JS(
24 this.pageNum = 0;
25 var isRight = true;
26 var undefined;
27
28 function adjustIsRight\(inAnswerName, inCorrectName\) {
29 var theAnswerField = this.getField\(inAnswerName\);
30 var theCorrectField = this.getField\(inCorrectName\);
31 if \( theAnswerField != undefined \) {
32 if \( theAnswerField.value != theCorrectField.value \) { isRight = false; }
33 }
34 }
35
36 for \(theCount = 1; theCount < 6; theCount++\) {
37 if \( "pageonecheck"+theCount != undefined \)
38 adjustIsRight\("pageonecheck"+theCount, "checkanswer"+theCount\);
39 }
40
41 if \(isRight==true\) { this.pageNum = 1; } else { this.pageNum = 2; }
42 )
43 >>
44 /ANN pdfmark
45 %%EOF