On Mon, Apr 30, 2012 at 2:01 PM, Daniel <[email protected]> wrote:
> 1. the confirm dialog / message appears when the "no" button is
> clicked.

Because both of the buttons are submit buttons. The confirm is called
on onsubmit().

> 2. the check on params['form']['no'] does not seem to stop the delete
> when "no" is clicked.

Perhaps you're making assumptions about the format of the data.

die(debug($this->params));

> 3. the "no" button appears underneath the "yes" button, instead of to
> the right of it.

This is a CSS problem.

I think you should take a step back and re-evaluate what it is you're
trying to do here. Ask yourself if it makes any sense to have "yes"
and "no" submit buttons in the first place. Why would anyone click the
"no" button? You already have a javascript confirm check. Change 'Yes'
to 'delete" or something like that, remove the 'No' button, as well as
the test in the controller, and you'll be on your way.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to