Sorry if I was unclear. You do not need to refresh the whole page. If you choose to utilize the Javascript, all the person has to do is click the CAPTCHA image if they can't read it and they will be given another one. Instantly, without a screen refresh.
To allow people to click CAPTCHAs for a new one on your Web Forms:
1. wrap the image within a link
| Code: : |
(a href="javascript:reloadJcaptcha();")IMAGE(/a)
|
2. paste the following Javascript function on the page
| Code: : |
(script)
function reloadJcaptcha() {
var now = new Date();
if (document.images) {
document.images.captcha.src = "YOUR_APP_URL/Jcaptcha/img.jsp?reload=\" + now;
}
}
(/script)
|
P.S. for some reason it strips out HTML even in a Code Block, so pretend the above shows valid HTML.