Connecting Tech Pros Worldwide Forums | Help | Site Map

problem in refresh

mayla_i@hotmail.com
Guest
 
Posts: n/a
#1: Jul 1 '06
Hello experts

I have this question which confuse me! so please help me

Is there a difference between clicking on the refresh button in the
browser and writing this command: "window.location.reload()"

(in the meaning of loading images on a page)

The problem that I'm facing is as following:
my page uses an image to display, I wrote a code in php to change some
pixels of that image and save it with the same name, now I need to
redownload this image again in my page so I wrote the statment
"window.location.reload()" but it surprised me that the result dosen't
appear unless I clicked mannually on the "refresh" button.
It seems that the old image is preloaded in cache or such thing? and
it's reloading again and again?

I tried to use the meta tag "no-cache" but with no good!


Xicheng Jia
Guest
 
Posts: n/a
#2: Jul 2 '06

re: problem in refresh


mayla_i@hotmail.com wrote:
Quote:
>
Is there a difference between clicking on the refresh button in the
browser and writing this command: "window.location.reload()"
To force a complete reload from the server, you may need to specify an
argument like: "window.location.reload(true)"

Xicheng

Closed Thread


Similar JavaScript / Ajax / DHTML bytes