Wednesday, November 5, 2008

Re: Reset form after $ajax->submit();

yeeehaw, I found it ;-)

It was just a new entry in the option array of the $ajax->submit();

Now it looks:

$ajax->submit('Absenden', array( 'div' => false,'url' => '/messages/
overview','update' => 'refreshArea','indicator' =>
'loading','complete' => 'document.entryForm.reset()'));


On 4 Nov., 21:52, Galdan <beyer.tho...@gmail.com> wrote:
> Hi together,
>
> i submit a form over $ajax->submit(); and update a div layer. That
> works very fine, but the form don't get reseted afterwards. How I can
> do this? Could someone help me?
>
> Thank you!!!
>
> Bye
> Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: