[TYPO3-dev] enhance FORM
Christopher Torgalson
bedlamhotel at gmail.com
Mon Feb 19 16:58:46 CET 2007
Hi there,
On 2/19/07, Steffen Kamper <steffen at dislabs.de> wrote:
>
> "Franz Holzinger" <franz at fholzinger.com> schrieb im Newsbeitrag
> news:mailman.1.1171885891.16134.typo3-dev at lists.netfielders.de...
> > Hello,
> >
> > does it make sense to enhance the FORM and its dataArray (page 95 of
> > TSref) to enable more parameters, e.g. like 'onclick="dothis();"'?
> >
> > Do you want to make any naming proposal?
> > dataArray {
> > 20.label = Eyecolor
> > 20.type = eyecolor=select
> > 20.attribute.onclick = dothis();
> > 20.attribute.onfocus = dothat();
> > }
> >
> > attribute list:
> > http://de.selfhtml.org/navigation/suche/index.htm?Suchanfrage=select
I would say instead of attributes to use the /existing/ convention in
the FORM cObject: 'params' [1]. You can already use e.g. "check.params
= onclick=doThis();" to apply an attribute to *all* checkboxes, so it
seems logical to use a similar syntax when doing it to individual
elements.
--
Christopher Torgalson
More information about the TYPO3-dev
mailing list