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
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
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
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