File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_Input_Tags.tex
Revision 1.4: download - view: text, annotated - select for diffs
Sat Dec 15 09:00:57 2012 UTC (11 years, 7 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_1, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0, HEAD
- spellcheck was misspelled.

\label{Authoring_Input_Tags}


This group of tags implements a mechanism for getting data for students.
They will usually be used by a response tag. 

\begin{itemize}
\item \textbf{textfield}\index{textfield}: Creates a large text input box.
If data appears between the start and end tags, the data will appear
in the textfield if the student has not yet made a submission. Additionally,
it takes two attributes: \textbf{rows} and \textbf{cols}, which control
the height and width of the text area respectively. It defaults to
10 rows and 80 columns.
\item \textbf{\label{textline}textline}\index{textline}: Creates a single
line input element. It accepts one attribute \textbf{size} which controls
the width of the textline, defaulting to 20.
\end{itemize}

Both the \textbf{textfield} and \textbf{textline} input tags support a \textbf{spellcheck}
attribute.   If present, the text the user types is spellchecked when focus leaves the input 
field.   The value of this attribute specifies the language in which the spellcheck is performed.
e.g. \textbf{<textfield spellcheck='en' />}  creates a text field that is spellchecked in 
English while \textbf{<textline spellcheck='de' />} creates a text field that is spellchecked 
in German.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>