Page 1 of 1

problem with ajax reloading an image

Posted: Thu Jul 20, 2006 12:54 am
by julian_lp
It's really annoying what happens in MSIE v6.0. The captcha image doesn't want to reload through a javascript call.(link "Reload Captcha")
Just for your information, the file* which creates the image, sends the following header
header("Content-type: image/png");

*http://choringa.com.ar/ajaxform/simplec ... aptcha.php

I'd be grateful if anyone can give it a try with a newer version:

http://choringa.com.ar/ajaxform/formtest.php

Note that the form works as expected both in FF1.5 and Opera8.2

Posted: Thu Jul 20, 2006 7:00 am
by Buddha443556
Doesn't seem to work in IE 6.0 still.

Re: problem with ajax reloading an image

Posted: Fri Jul 21, 2006 1:34 am
by jmut
julian_lp wrote:It's really annoying what happens in MSIE v6.0. The captcha image doesn't want to reload through a javascript call.(link "Reload Captcha")
Just for your information, the file* which creates the image, sends the following header
header("Content-type: image/png");

*http://choringa.com.ar/ajaxform/simplec ... aptcha.php

I'd be grateful if anyone can give it a try with a newer version:

http://choringa.com.ar/ajaxform/formtest.php

Note that the form works as expected both in FF1.5 and Opera8.2
You could debug this thing.
See if on each of your javascript call...the php actually runs (using error_log level 3 for example). If not...then you need to add

header("Cache-Control: no-cache");

because IE likes to cache stuff.
Anyhow...it is good practice to do it everytime.