Hello everyone. I am currently working on captcha to validate a form to register. I am developing the website using PHP - SMARTY - AJAX (XAJAX). With AJAX I am re-displaying image every time user clicks on "Try different words". This works fine in IE. The problem is with FireFox. It do not shows new captcha image. The problem I found is FF caches the images. If I clear the cache and click the link It shows the new image, but for next I need to clear cache again. I am replacing entire <img src...> tag each time user click. Please suggest possible solution. Thanks & Regards,
THat's right, But you can use this trick, when you reload captcha using javascript (right?) append a random dummy number as a query to the captcha image src, e.g <img src="capcha.php?time=123121" ... that will force FF to reload the captcha. You can see it in my website (on the comment story, for example)
Hi Goldensea80, Thanks for helping me. By appending a dummy random number, My problem solved. Now I can see the changing captcha image on FireFox too. Thank you very much.
Yeah FireFox is awesome and there cache is top notch but sometimes they do things a little bit too well, in cases like this when your trying to test I've lost a few hours before because of the cache problems but using a new dummy Paramater on the URL forces it to re-cache the page.