[TYPO3-mvc] Date examples, can't find any.

Nathan Lenz typo3 at k9tfk.com
Thu Jan 14 20:49:13 CET 2010


Franz Koch wrote:
> Hi,
> 
>> Wasn't sure if it was something that you might want in fluid.  Mainly
>> because I plan on adding a javascript calendar date-picker pretty soon.
>>
>> That starts adding external dependencies and probably shouldn't be built
>> in to fluid.
> 
> As for the JS stuff etc. Martin, Sebastian and I had recently a small
> discussion here on this list on how common JavaScript libraries and
> AJAX-features could be implemented in FLUID - maybe as viewHelper or
> whatever. We didn't come to a real conclusion, but there where some
> different concepts discussed you might be interested to read. I for
> myself prefer viewHelpers providing some common HTML syntax (like adding
> special css-classes etc.) that can be used for unobtrusive manipulation
> from any JS-Library the developer prefers. But this has also some cons,
> that the dev has to deal with the JS himself. But this is discussed a
> bit more in the mentioned thread. Please search for it if interested.
> 

I'm interested, but couldn't find (searched for javascript) the
discussion.  I still have 245 unread posts in this list (out of 1556).

I think this might be a difficult thing to do as different libraries
require different things and sometimes they conflict with each other.

For very specific things like form validation, calendar date pickers and
auto-complete it might be nice if it was encapsulated into a set of view
helpers that extend the default ones in a different namespace:

{namespace jquery=Tx_Jquery_ViewHelpers}

<jquery:form name="someform" method="post" object="{someobj}"
action="update" controller="Somecontroller" validate="onsubmit">

    <jquery:form.textbox validate="onblur" property="myproperty">

    <jquery:form.submit name="submit" value="Submit" />

</jquery:form>


Wouldn't it be sweet if that automatically generated the code to fire
off an XHR request, use the mapAndValidate to automatically validate the
property using the annotations and then return a thumbs up or down with
appropriate message?





More information about the TYPO3-project-typo3v4mvc mailing list