bubazoo Posted November 19, 2006 Share Posted November 19, 2006 has anyone seen a code snippet, or tutorial of some sort, on how todisplay a box on top of the current website saying something like"one moment please" while the page is loading, then disappears when the pageis done loading? Does anyone know how this is done? I've seen this on a couple of sites,http://www.appleblossomart.net for instance does this, and I've seen others. Does anyone know offhand how something like this is done?I was thinking, u could trap the "onload" function in XHTML, but then how would you know when the page is loading, and done loading?thanks Link to comment https://forums.phpfreaks.com/topic/27731-display-a-box-while-page-is-loading/ Share on other sites More sharing options...
fert Posted November 19, 2006 Share Posted November 19, 2006 this is a javascript thing. Link to comment https://forums.phpfreaks.com/topic/27731-display-a-box-while-page-is-loading/#findComment-126839 Share on other sites More sharing options...
bubazoo Posted November 19, 2006 Author Share Posted November 19, 2006 are you sure?I'm not talking about "onload" if thats what your thinking. that executes after the page has completely loaded. what I was asking, is how to display a box on top of the current page while the page is loading, then when the page is done loading take the box away. I don't think that can be done with javascript. Link to comment https://forums.phpfreaks.com/topic/27731-display-a-box-while-page-is-loading/#findComment-126858 Share on other sites More sharing options...
printf Posted November 19, 2006 Share Posted November 19, 2006 Or do it like those hotel and airline sites....1. fill the forum2. submit the form and load the data into a session or temporary table.3. show your message 'PLEASE WAIT'4. on the PLEASE WAIT page have a meta refresh, that is given id pointing to the form data...This way, you can do back end processing or whatever you want while they wait...printf Link to comment https://forums.phpfreaks.com/topic/27731-display-a-box-while-page-is-loading/#findComment-126906 Share on other sites More sharing options...
bubazoo Posted November 19, 2006 Author Share Posted November 19, 2006 I'm not submitting anything though.I'm looking on Dynamic drive and asking in the forums there since you guys aren't much help.I get these types of answers every time I visit this forum, or I get a bunch of downright rude answers, so I give up and am asking elsewhere where users are friendlier. Link to comment https://forums.phpfreaks.com/topic/27731-display-a-box-while-page-is-loading/#findComment-126912 Share on other sites More sharing options...
marcus Posted November 19, 2006 Share Posted November 19, 2006 Well because this really have nothing to do with PHP. You can easily make a script for this using Javascript ot AJAX Link to comment https://forums.phpfreaks.com/topic/27731-display-a-box-while-page-is-loading/#findComment-126938 Share on other sites More sharing options...
JasonLewis Posted November 19, 2006 Share Posted November 19, 2006 [quote]I'm looking on Dynamic drive and asking in the forums there since you guys aren't much help.[/quote]hey! the people here are doing the best they can. if you dont think they are trying then go away. Link to comment https://forums.phpfreaks.com/topic/27731-display-a-box-while-page-is-loading/#findComment-126953 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.