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?

Link to comment
Share on other sites

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;
}

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.