[TYPO3-mvc] FormViewHelpers (suggestions)
Nils Blattner
nb at cabag.ch
Fri Feb 19 11:19:37 CET 2010
Am 19.02.10 10:39, schrieb Martin Kutschker:
> Nils Blattner schrieb:
>>
>> The reason is simple:
>> I had to create some dynamic pages, where you enter stuff into an input
>> or click some checkbox and javascript would update the totals.
>> I fail to see why such everyday attributes are not part of the
>> $this->registerUniversalTagAttributes();
>
> Because you can easily add event handlers without the need to resort to inline JS. If you use inline
> JS you require your template authors to be JS coders.
>
> Masi
Of course you can add event handlers without using inline, however in
order to get events working on all browsers without putting a whole lot
of work into creating an OO-JS that works without any problems, inline
js is just by far the easiest.
Besides, I can define what information is passed to the handler that way!
I'm not saying its pretty or "the way to go".
But it's a valid way and for very small JS also (in my opinion at least)
the most manageable way.
Regards
Nils
More information about the TYPO3-project-typo3v4mvc
mailing list