I just found it.
I needed to ALSO make the AJAX call update the form.

On 10 nov, 22:17, Bart <[EMAIL PROTECTED]> wrote:
> Hello there,
>
> I have aformthat I submit with anAJAXcall. TheAJAXcall also
> updates another div in the page. I does not update theformdiv
> itself.
> All goes well, except when theforminput is validated as false there
> is no error message.
> The submission simply stops, the item is not inserted into the
> database and a new submit attempt can be made.
>
> When I do the submission by a regular POST call (noAJAX), I do get
> the right error message.
> Is there a workaround?
> Theajaxformcode looks as follows:
>
> echo $ajax->form('Snack', 'POST', array('update'=>'centralText',
> 'url'=>'/updateSnack', 'before'=>'togglePreloader();',
> 'complete'=>'togglePreloader();'));
>
> Thanks,
> Bart
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to