summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/forms-src/fde0013.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-05-23 00:23:51 +0000
committerKarl Berry <karl@freefriends.org>2009-05-23 00:23:51 +0000
commita683c3d7e9fac38ec713f23fb6b9d2c7143aea82 (patch)
tree424ab223921f85fd3f167a4ccd0e2d37d05c2927 /Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/forms-src/fde0013.tex
parent5beb5368a684995153c8566797ba054f21c666af (diff)
move english latex doc out of texmf-doc
git-svn-id: svn://tug.org/texlive/trunk@13412 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/forms-src/fde0013.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/forms-src/fde0013.tex19
1 files changed, 19 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/forms-src/fde0013.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/forms-src/fde0013.tex
new file mode 100644
index 00000000000..1476634e4f3
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/forms-src/fde0013.tex
@@ -0,0 +1,19 @@
+Events can be triggered by form elements, in the example
+we assign the function \textit{validateTime()\/} as an event
+handler for the Validate event of the
+\textit{zeit} choice list.
+\begin{lstlisting}
+validate={validateTime();}
+\end{lstlisting}
+If the user leaves the choice field the function is invoked
+and turns the ``from'' and ``until'' text fields visible
+\begin{lstlisting}
+this.getField("von").display = display.visible;
+this.getField("bis").display = display.visible;
+\end{lstlisting}
+or invisible.
+\begin{lstlisting}
+this.getField("von").display = display.hidden;
+this.getField("bis").display = display.hidden;
+\end{lstlisting}
+\lstinputlisting{../examples/ex0010.tex}