I"m trying to make a refresh captcha thing but it doens't seem to be working.
It will change the src attribute, but the image will not regenerate.
Yes, serverDomain variable is declared.
Code:
function refreshCaptcha()
{
var imgPath = serverDomain + "verificationimage.png";
var img = document.getElementById('captcha');
img.src = imgPath;
var inputField = document.getElementById('captchaInput');
if(inputField != null && inputField.value != '')
{
inputField.value = '';
inputField.focus();
}
}
It will change the src attribute, but the image will not regenerate.
Yes, serverDomain variable is declared.