473,396 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Need image from Server, not from cache

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

Jul 25 '07 #1
2 1564
On Jul 25, 1:16 am, Anees <muhd.an...@gmail.comwrote:
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();

Jul 25 '07 #2
Anees said the following on 7/25/2007 1:16 AM:
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
While the article in question deals with a page itself, the principle is
the same for an image:

<URL: http://jibbering.com/faq/index.html#FAQ4_17>

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 25 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ken | last post by:
How does IE6 control the display of images? I change the content of a image file image1.jpg without changing the file name. Then jump to a new page to display it. IE6 does not displays the...
1
by: Samuel | last post by:
Is there anyway to get IE to cache a redirected image? For example, I have an page with the following: <html><body> <img src=http://site1.com/redir.php?id=12> </body></html> The image is...
2
by: Marwin | last post by:
Hi all, I have a database with 40GB of binary objects stored in image columns in two tables. Our database server is also used for another 15 databases. SQL Server caches the image-column,...
2
by: magister | last post by:
Hello, Can anyone tell me with certainty? If I load a server-side image into a javascript image object. Is the image saved on the client, or does the page go back to the server when I do...
1
by: Adam Ratcliffe | last post by:
I'm trying to come up with a solution for detecting when an image, loaded by a script, has completely loaded. The Image.onload event is fired after the image has loaded in Firefox but before...
10
by: dave Cheseldine | last post by:
Hi I want to stop a gd generated image from being cached. It is called into index.php file as follows: <image src = "http://www.daveches.co.uk/importimage/importimage.php?x=$randomNumber"...
23
by: Peter | last post by:
I have a problem with a page show_image.asp that returns a jpg image under Windows XP Pro SP2. The page sets content type as: Response.ContentType = "image/jpg" While this works perfectly fine...
11
by: Jerry J | last post by:
How can I get an asp:Image to refresh when a user uploads a different jpg. I disabled caching using this command on Page_Load(): Response.Cache.SetCacheability(HttpCacheability.No Cache); but it...
2
by: jeanray | last post by:
I have a site made entirely with AJAX, base PhP and MySQL, so the is only one page (index.php). The user goes through various selections and an image is formed (on the server), then sent back to the...
32
by: C. (http://symcbean.blogspot.com/) | last post by:
Hi all, I have an application which generates image graphs. These cache nicely at the client, however if the user submits more data, I'd like to force a reload of the image from the server. I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.