Yii Captcha don't refresh image on refresh button clicked -


i don't know why captcha image not refresh when click on refresh link.

my code :

<?php $this->widget('ccaptcha'); ?> <?php echo $form->textfield($model,'verifycode'); ?> 

i saw xhr response , empty , checked link of refresh link , thing tis :

mydomain/captcha?refresh=1&_=1367673730496

and return image should return somthing

{"hash1":311,"hash2":311,"url":"/mydomain/captcha?v=518509b295d06"}

  • i saw above link in other application of mine works fine ccaptch.
  • on page refresh , captcha image changes.

the corrupted captcha sent 1 xhr , refresh 1 fine captcha should send 2 saw in other application,one refresh , other getting image.

what should ?

edit:

i found fact :

functional captcha works jquery.min corrupted 1 works jquery !! don't add header , added yii.

second edition:

i found 2 files handle captcha in yii framework , see when send request :

mydonmain/controller/captcha?refresh=1

and

print_r($_get); die(); 

it return :

array ( [/controller/captcha] => )

which means don't understand get->refresh request !! somehow $_get request disabled !!

did checked yii main.php contain urlmanager section ? rules sequential.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -