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
https://forums.phpfreaks.com/topic/36928-displaying-a-please-wait-message/
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>

  • 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?

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.