Xpages Captcha Custom Control - Review: Great workCreated on |
Apr 11, 2014 |
Created by |
P Solano |
|
|
This in an excellent job; just what I needed... in less than 4 hours I had it working.
I'm using it in dialogbox from Extension Library and I had to add the validation to my Submit button on CSJS
since it doesn't work when its a Partial Refresh instead of Full Update (Issue is with .
var captcha = XSP.getElementById("#{id:inputCaptcha}").value;
var captchaAnswer = '#{javascript: sessionScope.ccCaptchaText;}';
if (captcha != ""){
if ( captcha != captchaAnswer){
alert("Invalid code! Please try again.");
return false;
}
}