Note that captcha.php, generates a png image. I know it works well,
beacause in page load, I've
<img id="mainimage" src"simplecaptcha/captcha.php">
and the image is generated as expected,
but as soon as I want to reload the image, I can't
Note that I tried both with absolute and relative paths to the php
file, and neither work
<a href="javascript:void(0)" onclick="ReloadCaptcha();">give me an
easier one!</a>
<script type="text/javascript">
function ReloadCaptcha(){
alert ('ReloadCaptcha');
///document.getElementById('mainimage').src='http://MYSITE/simplecaptcha/captcha.php';
document.getElementById('mainimage').src='simpleca ptcha/captcha.php';
return true;
}
</script>