Skip to main content
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Getting Started

I need to refresh a page to see images.

Hi, in order to see picture of the editorial team here I need to refresh the page, always. Can you please help.

Resolver VI

Hi, You can refresh /reload page  by this code

    var newImage = new Image();
function updateImage() {
    if(newImage.complete) {
           var temp = newImage.src;
           newImage = new Image();
           newImage.src=temp+"?" + new Date().getTime();

setTimeout(updateImage, 1000);
<body onload="updateImage();">
<img id="img" src="URL" style="position:absolute;top:0;left:0;height:50%;width:50%"/>
Zulfiqar Anees | Founder/CEO at FastTech Media, TechMag, TechKnowable, and ZulWeb | GoDaddy Pro.

thank you, Zulfiqar,


Though my question was a bit different. Why do I need to refresh a page just to see images executed by a simple code like this one:


<div id="team_member">
<img id="photo" typeof="foaf:Image" src="/sites/default/files/adam.png" alt="Adam ROBERTSON ">
<div id="name_title">
<div class="name">Adam NAME</div>
<div class="title">Editor / Film and Theatre</div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer id enim libero. Vestibulum at finibus sapien. Morbi quis convallis tellus. Suspendisse porttitor feugiat ante, ac molestie erat sagittis a. Sed congue velit ut ornare lacinia. Proin vitae massa consequat, venenatis lorem et, facilisis velit.


Never seen a glitch like this one. So annoying.