that was fast. it worked. i appreciate it ;)

On 28 Okt., 22:54, Tilen Majerle <[email protected]> wrote:
> use an attribute in image options
>
> "onclick" => "return confirm(\"Are you sure?\");"
>
> --
> Tilen Majerlehttp://majerle.eu
>
> 2010/10/28 Tomfox Wiranata <[email protected]>
>
> > hi,
>
> > this code deletes sth on click.
>
> > php echo $html->image("icons/delete.png", array(
> >                                "alt" => "delete",
> >                                'url' => array('controller' => 'products',
> > 'action' => 'delete',
> > $pr['Product']['id'])
> >                                )); ?>
>
> > but before it does, I'd like to open a window that makes sure, if the
> > user really wants to delete...now i know in the blog tutorial it is
>
> >  <?php echo $html->link('Delete', array('action' => 'delete', 'id' =>
> > $post['Post']['id']), null, 'Are you sure?' )?>
>
> > but i cant make it happen this way..!!!!?????
>
> > any ideas?
>
> > thank you :)
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<cake-php%[email protected]>For
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to