On Jan 16, 5:45 pm, jeremyharris <[email protected]> wrote:
...
> Try something like this:
>                 <?php echo $this->Js->link('Can not read this code?
> Reload.', *array('action' => 'captcha')*,
> array('update'=>'*#captchaID*')); ?>

If clicked then this just causes the captcha to be redrawn on it's own
without the add.ctp form.

I get the same result if I run the following:
<?php echo $this->Js->link('Can not read this code? Reload.',
'reload_captcha', array('update'=>'captchaID')); ?>

...with the reload_captcha function as follows:
function reload_captcha() {
        $this->layout='ajax';
        $this->viewPath = 'Elements'.DS;
        $this->render('reload_captcha');
}

... and I have reload_captcha.ctp in the elements folder.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to