
 Alexander Selifonov - 2009-03-18 13:11:40 - 
In reply to message 1 from DavidYou 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.