Need image from Server, not from cache

A

Anees

Am trying to load the same image to browser through Ajax in a click
from a page.

but, once a browser found dat the picture already taken from server,
it never goes to load it from server. How can i insist the browser to
retake the same picture from server instead of its cache through
javascript

Please Help
Thanks in advance

Regards
Anees
 
D

David Mark

Am trying to load the same image to browser through Ajax in a click
from a page.

but, once a browser found dat the picture already taken from server,
it never goes to load it from server. How can i insist the browser to
retake the same picture from server instead of its cache through
javascript

Tack a query onto the end of the image's source URI. Like this:

imageElement.src = "imagename.gif?" + new Date().getTime();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top