Debbie-Leigh Posted February 3, 2007 Share Posted February 3, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/36928-displaying-a-please-wait-message/ Share on other sites More sharing options...
twilightnights Posted February 4, 2007 Share Posted February 4, 2007 you can have 1 page that says processing... and use javascript to autodirect the page that is loaded maybe? Quote Link to comment https://forums.phpfreaks.com/topic/36928-displaying-a-please-wait-message/#findComment-176444 Share on other sites More sharing options...
FierceBlade Posted February 4, 2007 Share Posted February 4, 2007 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> Quote Link to comment https://forums.phpfreaks.com/topic/36928-displaying-a-please-wait-message/#findComment-176461 Share on other sites More sharing options...
rkelsey Posted February 16, 2007 Share Posted February 16, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/36928-displaying-a-please-wait-message/#findComment-186251 Share on other sites More sharing options...
fenway Posted February 16, 2007 Share Posted February 16, 2007 A meta-refresh that keeps hitting a script that gives a "go" or "no-go" will work. Quote Link to comment https://forums.phpfreaks.com/topic/36928-displaying-a-please-wait-message/#findComment-186378 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.