[TYPO3-english] Formhandler: Validating via JSON?
Reinhard Führicht
rf at typoheads.at
Mon Jan 18 11:11:14 CET 2010
Hi Benni,
you could either use an interceptor entered in the saveInterceptor
section or you could extend View_Form since the view gets information
about the errors, but the interceptor won't AFAIK.
Kind regards,
Reinhard
Benjamin Mack schrieb:
> Hey all,
>
> I'm currently implementing a form with this amazingly new extension
> "formhandler". However, since my HTML form is built in a way to send the
> form via AJAX that expects JSON with either the missing fields or a
> success flag (already predefined, not by me ;-)), I was wondering if
> anybody knows where to hook in the Formhandler process to change the
> output of the sent form to return JSON of something I want instead of
> the HTML form again. This ain't a "Validator" but also not a "Finisher",
> right?
>
> Could anybody point me in the right direction?
>
> Thanks a ton!
>
> Benni.
More information about the TYPO3-english
mailing list