I've got the same problem than you.
did you find a solution?

On 20 mai, 00:23, Nancy <nancy.milli...@gmail.com> wrote:
> Buttons without type of submit don't really do anything without
> onClick javascript right?  I tried your idea and it just doesn't do
> anything.  Reset just resets a form.  I'd use the Javascript but I'm
> not entirely sure to how make that work with Ajax.
>
> On May 18, 5:35 pm, "Gabriel A. Gonzalez" <gabriel...@gmail.com>
> wrote:
>
> > Use "reset" or "button" NOT "submit" type for the cancel button.
>
> > <input name="Cancel" value="cancel" type="reset"> or <input name="Cancel" 
> > value="cancel" type="button">
>
> > Nancyescribió:
>
> > > So, I added a submit and a cancel button to my ajax form and it
> > > doesn't matter which you press, it always returns the submit button,
> > > not the cancel.
>
> > > The view code has this at the bottom (I stopped using helpers to see
> > > if raw HTML would help, it didn't):
> > >     <input name="Submit" value="submit" type="submit">
> > >     <input name="Cancel" value="cancel" type="submit">
>
> > > In the controller (admin_edit) function, I'm dumping out the contents
> > > of $this->params['form'] and it always shows
>
> > > Array
> > > (
> > >     [Submit] => submit
> > > )
>
> > > Even if you press the cancel button.  Am I doing something wrong?
>
> > > Thanks!
>
> > >Nancy
>
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to