...

View Full Version : Displaying 'Loading...' message on page load



blue_harvester
02-08-2007, 03:59 PM
Is there a way to display a 'loading...' message (like the gmail loading message i.e. a hidden div) for non-ajax enabled pages? So I really just want to display this message when the page is loading. I know the user could look at the status bar of their browser to see when the page is loading but I would like to implement some extra feedback.

This needs to be cross browser compatible.

david_kw
02-08-2007, 09:28 PM
I've seen it done by preloading images and putting up a message to that effect.

http://www.javascriptkit.com/script/script2/preloadit.htm

david_kw

chump2877
02-08-2007, 09:37 PM
The onload event fires after everything inside the page has loaded:


<body onload="document.getElementById('workingBox').style.display = 'none';">

<div id="workingBox" style="display:block"><p>Loading. . .</p></div>

blue_harvester
02-08-2007, 11:39 PM
The onload event fires after everything inside the page has loaded:


<body onload="document.getElementById('workingBox').style.display = 'none';">

<div id="workingBox" style="display:block"><p>Loading. . .</p></div>
This is perfect and exactly what I'm after! Thank you.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum