File: fde0013.tex

package info (click to toggle)
texlive-doc 2009-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 192,004 kB
  • ctags: 4,774
  • sloc: perl: 12,760; xml: 11,870; makefile: 1,033; lisp: 394; sh: 229; awk: 205; java: 159; sed: 4
file content (19 lines) | stat: -rw-r--r-- 680 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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}