Need image from Server, not from cache

Discussion in 'Javascript' started by Anees, Jul 25, 2007.

  1. Anees

    Anees Guest

    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
     
    Anees, Jul 25, 2007
    #1
    1. Advertising

  2. Anees

    David Mark Guest

    On Jul 25, 1:16 am, Anees <> wrote:
    > 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();
     
    David Mark, Jul 25, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeff Nokes

    Cache::Cache Stale Segments

    Jeff Nokes, Sep 30, 2003, in forum: Perl
    Replies:
    0
    Views:
    589
    Jeff Nokes
    Sep 30, 2003
  2. =?Utf-8?B?b25l?=
    Replies:
    1
    Views:
    5,313
    Karl Seguin [MVP]
    Mar 8, 2006
  3. John
    Replies:
    2
    Views:
    1,195
  4. David Lozzi

    To cache or not to cache

    David Lozzi, Aug 21, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    367
    vMike
    Aug 21, 2007
  5. Jake Barnes
    Replies:
    7
    Views:
    211
    Evertjan.
    Dec 8, 2005
Loading...

Share This Page