problem with ajax reloading an image

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
julian_lp
Forum Contributor
Posts: 121
Joined: Sun Jul 09, 2006 1:00 am
Location: la plata - argentina

problem with ajax reloading an image

Post 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
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

Doesn't seem to work in IE 6.0 still.
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Re: problem with ajax reloading an image

Post 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.
Post Reply