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 Quote Link to comment Share on other sites More sharing options...
fert Posted November 19, 2006 Share Posted November 19, 2006 this is a javascript thing. Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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.