Friday, July 31, 2009

Ajax link update?

I have an ajax link that will toggle if the user is confirmed or not without reloading the page.

                        <td><?php echo($ajax->link($user['User']['confirmed'], array('controller' => 'users', 'action' => 'confirm/'.$user['User']['id']), array(), 'Update Confirmation for " '.$user['User']['username'].' "'));?></td>


How do I get the link text to update when I click on the link? I am a bit new to using ajax/javascript so any help would be wonderful.

~Michael

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: