Hello,

I am having the same problem.
There is a submitImage for the formHelper but not for the ajaxHelper.
So I tried to make my own. But something doesn't work properly. It
doesn't give an error, but looses the data.
Any ideas?

// excerpt from the libs/views/helpers/ajax.php from version
1.2.0.5146alpha

        function submitImage($path, $options = array()) {
                if (strpos($path, '://')) {
                        $url = $path;
                } else {
                        $url = $this->webroot(IMAGES_URL . $path);
                }
                $options['onclick'] = "return false;";
                if (!isset($options['id'])) {
                        $options['id'] = 'submit'. intval(rand());
                }
                return $this->output(sprintf($this->Html->tags['submitimage'], 
$url,
$this->_parseAttributes($options, null, '', ' ')))
                .$this->Javascript->event('"' . $options['id'] . '"', 'click', 
$this-
>remoteFunction($options));
        }

Thanks
Casper


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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