Not sure if this is all you need, but the form must have the option onsubmit="return(false);" to not reload the page.
Regards On 23 Aug., 15:54, Shaun <sbef...@gmail.com> wrote: > In a non-AJAX form, I commonly use this: > > $form->button('Submit', array('onclick' => 'this.form.submit()')); > > I can't use this with the AJAX helper because the onclick event will > reload the page. How can I use a button with AJAX? I want to avoid > using a regular submit button because it doesn't play well with CSS. --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---