Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Force image refresh

    How to force image refresh on client browser ? Is ti possible to force the
    refresh of the same image (tha was changed server-side) to the client,
    without user press Contrl+F5 in IE ?

    -
    Marco


    Marco Maroni Guest

  2. Similar Questions and Discussions

    1. How to force Server Behaviors inspector to refresh
      I have created a server behavior which would not add code to the JSP file. The findServerBehaviors() is used to check whether a MMNotes value is...
    2. Force page to refresh/prevent caching
      Greetings JGLADNICK. This is referring to your post on CFusion/WebForums of one year ado regarding "Prevent Caching". Have you ever been able to...
    3. Force Image to Reload
      What is the best way to load an image into a movie and force it to refresh every x seconds? This is for a webcam viewer - I want a jpg to reload...
    4. How To Force a Browser To Refresh an swf Movie.
      Maybe I have gone about this all wrong, but I have embedded swf's in my site so that when someone clicks an item in the nav menu, the new section...
    5. Optionally force refresh in another frame
      Hi all, I have 3 frames: Top, Menu (menu.php?menuid=x) and Content ( Content.php?) Menu.php displays a menu, and the selected item=x...
  3. #2

    Default Re: Force image refresh

    Hi Marco,

    There's not really a way to have the server tell the client to refresh the
    page. However, the server can send information that tells the client to
    refresh the page at a specific interval. There are a couple of ways to do
    this. One way is to add a META tag to in the HEAD of the HTML sent to the
    client. For instance, if you want the entire page to refresh every 2
    seconds, you could add the following tag to inside the HEAD element:

    <META HTTP-EQUIV="REFRESH" CONTENT=2>

    You can also use client-side script to force a refresh. You could use a
    combination of window.setInterval() and location.reload() to periodically
    refresh the page.

    window.setInterval:
    [url]http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/setinterval.asp[/url]
    location.reload:
    [url]http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/reload.asp[/url]

    If you wanted to refresh the page only when the image is updated, I would
    pursue perhaps having a hidden frame with a page that periodically checks to
    see if the image has been updated since the last time it was loaded, then
    refresh the entire page if it has.

    Good luck!


    --
    Ray Dixon - Microsoft MVP
    [email]ray@NOSPAM.greeble.com[/email]
    (remove NOSPAM. from my e-mail address for a direct reply)



    "Marco Maroni" <mmaroni@yahoo.com> wrote in message
    news:OGX1pZ6TDHA.1552@TK2MSFTNGP12.phx.gbl...
    > How to force image refresh on client browser ? Is ti possible to force the
    > refresh of the same image (tha was changed server-side) to the client,
    > without user press Contrl+F5 in IE ?
    >
    > -
    > Marco
    >
    >

    Ray Dixon [MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139