Jump to content

Displaying a Please Wait message


Debbie-Leigh

Recommended Posts

Hi,

 

I need to display a please wait message followed by the actual page when the processing has finished.  The actual page should overwrite the please wait message.  I've tried using header status codes, but they either mess up the page or just leave the please wait message still being displayed.

 

I've seen this technique being used, but haven't been able to find out how it is done.

 

Can anyone enlighten me on how to do it, please?  I'm using PHP to code my pages, if that helps.

 

Thanks.

 

Debbie

 

Link to comment
Share on other sites

You could do this with meta tags,

 

<META HTTP-EQUIV="refresh" content="20; url=homepage.htm">

 

20 being the seconds

 

homepage.htm being the page you wish it to move to.

 

then you display the text Please Wait

 

<META HTTP-EQUIV="refresh" content="20; url=homepage.htm"
<b>Please Wait...</b>

Link to comment
Share on other sites

  • 2 weeks later...

i'm no JavaScript expert, but maybe the document.write function can help you out?

<head>
<!--JavaScript (Probably Wont Work)-->
<script>
document.write.message("Please Wait...");
</script>
<!--End of JavaScript-->
<META HTTP-EQUIV="refresh" content="5;url=homepage.htm">
</head>
<body>
<noscript>You need JavaScript enabled for this page.</noscript>
<span id="message"></span>
</body>

 

The JavaScript above wont work but, have like an IF statement saying: "IF processing is in progress, write this to span id message else redirect to new page"

 

some kinda live thing?

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.