Re: Use Image Inside an Ajax Link ($ajax->link) Helper

2006-05-21 Thread Armando Sosa
Reggie:ImageTag is deprecated because you should useĀ  HTMLHelper:image() instead.The correct code for making a ckickable ajax link to an image is something like this:$ajax->link($html->image("refresh"), 'Controller/action', array("update" => "emails", "url" =>"list_emails" ),null,false); On 5/21/06

Re: Use Image Inside an Ajax Link ($ajax->link) Helper

2006-05-21 Thread Daniel Hofstetter
Yes, https://trac.cakephp.org/ -- Daniel Hofstetter http://cakebaker.wordpress.com --~--~-~--~~~---~--~~ 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 T

Re: Use Image Inside an Ajax Link ($ajax->link) Helper

2006-05-20 Thread Reggie Johnson
Okay, I wasn't able to figure anything out after a few hours of going over the documentation and Googling so I rolled my own $ajax->image function, and placed it in the ajax.php file. Here it is: ** * Creates a formatted IMG element that is Ajax enabled for an onclick * * @param string $pat

Use Image Inside an Ajax Link ($ajax->link) Helper

2006-05-20 Thread Reggie
I'm trying to create an image that makes an Ajax call when it is clicked. Looking at ajax.php gives this example on line 00115: $ajax->link(imageTag("refresh"), array("update" => "emails", "url" => "list_emails" )); However, imageTag is deprecated so this doesn't work. A Ajax clickable image wo