Login   Register  
PHP Classes
elePHPant
Icontem

Refresh Button

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      DHTML and CSS CAPTCHA  >  All threads  >  Refresh Button  >  (Un) Subscribe thread alerts  
Subject:Refresh Button
Summary:Tried to Create refresh button... need help
Messages:2
Author:David
Date:2009-03-17 18:37:14
Update:2009-03-18 13:11:39
 

  1. Refresh Button   Reply   Report abuse  
Picture of David
David
2009-03-17 18:37:14
I wasn't exacly sure how to make a refresh button for this awesome captcha. I tried different methods and they would return with errors. If the author could provide this I would be grateful! Awesome app!

  2. Re: Refresh Button   Reply   Report abuse  
Picture of Alexander Selifonov
Alexander Selifonov
2009-03-18 13:11:40 - In reply to message 1 from David
You should pass 5-th parameter in constructor, it must be a js function name that is called when "refresh" clicked. It can be dummy function that does nothing, in my case I use it to clean / reinit "results" text box :

$captcha = new CSniperCaptcha(4,'btnsubmit','Success()','CaptchaFail()','CaptchaCleanMessage()');

Somewhere in js code (suppose, we use jQuery):
<script type="text/javascript:>
...
function CaptchaCleanMessage() {
$("#captcharesult").html("Please click on colored box 4 times");
}

With this refresh link will be shown.