refresh page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ken

    refresh page

    If the image content for image1.jpg changes, but the file name image1.jpg
    does not,
    IE6 does not show the new content unless F5 is pressed.

    If I reload the page using http://domain.com/view_pictures.php the image
    does not change.

    If I use a header("LOCATIO N: http://domain.com/view_pictures.p hp"), the
    image does not change.

    I have tried several ideas to force the reloading of the image file with no
    little success.

    I cannot change the image file name.

    Even if I add another a second image, the first image does not change.

    IE must use the file name to determine if it should reload the file. But F5
    works.

    Is there a means in either php or JavaScript to call (force) a F5-keyboard
    command? or an absolute refresh not reload.

    Ken



  • Shawn Wilson

    #2
    Re: refresh page

    Ken wrote:[color=blue]
    > Is there a means in either php or JavaScript to call (force) a F5-keyboard
    > command? or an absolute refresh not reload.[/color]

    Quick and dirty:

    <img src="image1.jpg ?<?PHP echo time(); ?>" />


    Shawn
    --
    Shawn Wilson
    shawn@glassgian t.com

    Comment

    Working...