So, i resolved the problem, but now i have another problem. When i
click on the link the action is executed, but i would to show the
prompt to the user. When user click to yes, must delete user, but if
click to no, then the user isnn.'t deletet.

Here is the code:
        <li><?php echo $html->link('Delete', '/admin/users/view/' .
$user['User']['id'], array('onClick'=>'$.prompt(\'Are you sure?\',
{ buttons: { Yes: true, No: false }})')) ?> </li>


On Sep 30, 7:48 pm, Andraž <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I'm learning jQuery and i have some problems. I'm using this plugin
> (http://trentrichardson.com/Impromptu/) in this function
>         <li><?php echo $html->link('Delete', '/admin/users/delete/' .
> $user['User']['id'], array('onClick'=>'$.prompt('Realy?',{ buttons:
> { Yes: true, No: false }})')) ?> </li>
>
> The problem is, how to use impromptu plugin with $html->link?
>
> Sory for my bad english.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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