Print Page | Close Window

CAPTCHA - reload images on Onload

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz CAPTCHA
Forum Description: Support forum for the Web Wiz CAPTCHA security image.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21451
Printed Date: 28 March 2026 at 9:22am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: CAPTCHA - reload images on Onload
Posted By: nazgyl
Subject: CAPTCHA - reload images on Onload
Date Posted: 01 October 2006 at 7:36pm
My appologies if this was brought earlier.

my captcha implementation is working fine.
however i would like to know how to achieve this:

when a user submits the form , with the correct captcha code, it goes to page 2, on this page, i check the entered values and if there is an error, i hava a history.back(-1) link to the form to edit his form data..

now when he goes back using the link, the captcha image is the same one as the original captcha when he first filled the form, how can i make the image reload when he hits the link above?
i tried <body OnLoad="reloadCAPTCHA()" > but its not working.

any ideas?



Replies:
Posted By: WebWiz-Bruce
Date Posted: 02 October 2006 at 9:46am
The file is set not to cache which in most cases IE works with, but with Firefox it doesn't. I have tried many ways but have not found a solution either.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: nazgyl
Date Posted: 02 October 2006 at 10:23am
Thank you!
and thank you for a set of great products.



Posted By: WebWiz-Bruce
Date Posted: 02 October 2006 at 10:34am
Thanks nazgyl, and if you find a solution please let me know as I would be very interested to hear.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: ekesqueaky
Date Posted: 29 March 2007 at 8:08pm
I had the same problem.  As a workaround, I added  OnFocus="javascript:reloadCAPTCHA();" to the text box in CAPTCHA_form_inc.asp.  That way, the image changes each time they tab to or click on the code field.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net