Jump to content

display a box while page is loading


bubazoo

Recommended Posts

has anyone seen a code snippet, or tutorial of some sort, on how to
display a box on top of the current website saying something like
"one moment please" while the page is loading,  then disappears when the page
is 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
Share on other sites

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
Share on other sites

Or do it like those hotel and airline sites....

1. fill the forum
2. 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
Share on other sites

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
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.