Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Refreshing an image that is created dynamically


Message #1 by kaushalim@h... on Fri, 31 May 2002 08:56:52
Ive a problem of refreshing an image.As currently the site fetches the 
images already loaded from the cache.

The scenario is like this.In my main page there r 4 links.Once each link 
is clicked a image specific to that page will load.(As each link will load 
a new page)

Ive performed this action in a dynamic manner.(As the image will be 
fetched from the database when the page is loaded.)All the images will 
therefore be loaded to a tempimage.jpg file.

The problem is that always the correct image for that particular link will 
not display.Doing the refresh(F5) will bring the correct image after a 
couple of tries.I want to overcome this problem.

I am using html,java scripts,servlets and some backend java classes along 
with a database.

The web site is working ok except for this hitch.(the correct image not 
been loaded as its taking the previously accessed image from the cache)

How can i solve this problem?

Thanks
Kel

  Return to Index