Re: Form Cancel

2007-03-15 Thread Langdon Stevenson
scragz wrote: > You would still want controller code in place for non-JS clients where > the onclick wouldn't fire. Quite so. The form that the code I posted comes from uses Ajax where available, but degrades to a regular post if JS is disabled. Either way, it is still the same controller cod

Re: Form Cancel

2007-03-15 Thread scragz
You would still want controller code in place for non-JS clients where the onclick wouldn't fire. On Mar 15, 4:35 pm, "francky06l" <[EMAIL PROTECTED]> wrote: > you could even use the aboce and add an "onClik" to redirect where > you want without submitting at all the form. > > On Mar 15, 10:22 p

Re: Form Cancel

2007-03-15 Thread francky06l
you could even use the aboce and add an "onClik" to redirect where you want without submitting at all the form. On Mar 15, 10:22 pm, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > Hi Tuzi > > I have cancel buttons in my application that work the way that you want. > The html for the button i

Re: Form Cancel

2007-03-15 Thread Langdon Stevenson
Hi Tuzi I have cancel buttons in my application that work the way that you want. The html for the button is as follows: Then in my controller I test for the button using: if($this->params['form']['submit'] == 'save') { do some stuff ... } Regards, Langdon Michael Tuz

Form Cancel

2007-03-15 Thread Michael Tuzi
Is it possible to create a cancel button in a form that doesn't require js using $html->submit? The submit button's value isn't returned in the params array. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP