Hello there,
I have a form that I submit with an AJAX call. The AJAX call also
updates another div in the page. I does not update the form div
itself.
All goes well, except when the form input 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 (no AJAX), I do get
the right error message.
Is there a workaround?
The ajax form code 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
-~----------~----~----~----~------~----~------~--~---