summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/interactiveworkbook/epsfiles/fieldsubmit.eps
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-09 00:44:40 +0000
committerKarl Berry <karl@freefriends.org>2006-01-09 00:44:40 +0000
commitb4fc5f639874db951177ec539299d20908adb654 (patch)
tree52f08823ca58fffe3db6a9b075635038c567626c /Master/texmf-dist/doc/latex/interactiveworkbook/epsfiles/fieldsubmit.eps
parentdec3d98ebe442d7ea93efbaa8dd2e2be8149a467 (diff)
doc 4
git-svn-id: svn://tug.org/texlive/trunk@80 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/interactiveworkbook/epsfiles/fieldsubmit.eps')
-rw-r--r--Master/texmf-dist/doc/latex/interactiveworkbook/epsfiles/fieldsubmit.eps44
1 files changed, 44 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/interactiveworkbook/epsfiles/fieldsubmit.eps b/Master/texmf-dist/doc/latex/interactiveworkbook/epsfiles/fieldsubmit.eps
new file mode 100644
index 00000000000..5e62e291f52
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/interactiveworkbook/epsfiles/fieldsubmit.eps
@@ -0,0 +1,44 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% SUBMIT FIELD BUTTON: COMPARES TEXT_FIELD (USER) ANSWERS WITH
+% ANSWER_TEXT_FIELD (CORRECT) ANSWERS AND
+% IF MATCH, GOES TO CORRECT RESPONSE PAGE;
+% OTHERWISE, GOES TO INCORRECT RESPONSE PAGE
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%!PS-Adobe-3.0 EPSF-3.0
+%%BoundingBox: 0 0 90 30
+%%EndProlog
+[
+ /T (Field_Submit_Button)
+ /Rect [0 0 90 30]
+ /Subtype /Widget
+ /F 4
+ /FT /Btn
+ /Ff 65540
+ /H /P
+ /AP << /N {Submit_Up} /D {Submit_Down} >>
+ /Action <<
+ /Subtype /JavaScript
+ /JS(
+ var isRight = true;
+ var undefined;
+
+ function adjustIsRight\(inAnswerName, inCorrectName\) {
+ var theAnswerField = this.getField\(inAnswerName\);
+ var theCorrectField = this.getField\(inCorrectName\);
+ if \( theAnswerField != undefined \) {
+ if \( theAnswerField.value != theCorrectField.value \) { isRight = false; }
+ }
+ }
+
+ for \(theCount = 1; theCount < 6; theCount++\) {
+ if \( "pageonefield"+theCount != undefined \)
+ adjustIsRight\("pageonefield"+theCount, "fieldanswer"+theCount\);
+ }
+
+ if \(isRight==true\) { this.pageNum = 1; } else { this.pageNum = 2; }
+ )
+ >>
+/ANN pdfmark
+%%EOF