Add Captcha refresh
What is the correct way to add a refresh button to the Captcha on the Register and Forgot Password pages generated by Security Assist?
What is the correct way to add a refresh button to the Captcha on the Register and Forgot Password pages generated by Security Assist?
the code to show the captcha image will look something like:
<img src="webassist/captcha/wavt_captchasecurityimages.php?width=200&height=50&field=Security_Code_1&bgcolor=FFFFFF&transparent=0&bgimage=&gridfreq=20&gridcolor=000000&gridorder=behind&noisefreq=20&noisecolor=000000&noiseorder=behind&characters=5&charheight=&font=fonts/MOM_T___.TTF&textcolor=000000" alt="security code" width="200" height="50" />
edit that, so that it has an id:
<img id="capt1" src="webassist/captcha/wavt_captchasecurityimages.php?width=200&height=50&field=Security_Code_1&bgcolor=FFFFFF&transparent=0&bgimage=&gridfreq=20&gridcolor=000000&gridorder=behind&noisefreq=20&noisecolor=000000&noiseorder=behind&characters=5&charheight=&font=fonts/MOM_T___.TTF&textcolor=000000" alt="security code" width="200" height="50" />
then add a refresh image next to it with an onClik event to regenerate the captcha graphic:
<img src="refresh.png" height="18" onclick="document.getElementById('capt1').src+='&ref=1'" />
The captcha refresh now works fine on the registration and forgetpassword pages.
However while testing the forgetpassword page I found that the following message was returned "Your email address could not be found in our records. Please try again."
I tried a number of trial email addresses which are definitely in the users table but with the same error message.
The site is not yet live and only on a local testing server, is this the reason for this problem?
send a copy of the forgot password page please.
you need to edit the forgot password server behavior and set the correct SMTP Server address and port for sending emails from your server, if you are not sure of the correct address to use, contact your host.
Hello,
I keep screwing up the spelling of Wednsday and would like to add the refresh option to both Captcha features.
I understand everything to the point of:
"image next to it with an onClik event to regenerate"
I know where to find the OnClik behavior, but I have no idea what to write for the action, can you elaborate?
see the example in post 2 of this thread:
showpost.php?p=116836&postcount=2
<img src="refresh.png" height="18" onclick="document.getElementById('capt1').src+='&ref=1'" />
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.