Jump to content

Bit of an issue hiding a image that was shown if the user hits back


ident

Recommended Posts

what are the solutions for this. My problem is i have a picture displayed "uploading....." when a user clicks upload

 

                               <div id = "mydiv" style="display:none">
                 <br /><center>  <img src="uploading.png" /></center>
                                      </div>

and this is called on click

function showImage() {
document.getElementById("mydiv").style.display="block";
}

 

but if a user clicks back the image is stil there.

 

what work arounds r there for this?

but if a user clicks back the image is stil there.

 

what work arounds r there for this?

 

Run a function on page load that hides the image. That was it will always be hidden when the page first loads.

 

 

Should the style in your HTML not say display:hidden

 

No,

 

.some-class {
display: none;
visibility: hidden;
}

Hi, i found this code

 

<?php
header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');
header('Expires: Mon, 12 Jul 1996 04:11:00 GMT'); //Any date passed.
header('Pragma: no-cache');
?>

 

is there any way to send it other then the header? as keep getting warning header already sent

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.