|
|
 |
RE: FN-FORUM: Creating a "Please wait..." page
date posted 1st August 2006 13:49
> I am wondering if there is a way of putting a small
> popup/alertbox/window saying please wait while we
> search the system type thing, which detects when the
> page is fully loaded and then disappears?
If JavaScript is allowed, you could use the 2-layer switcheroo.
When the page loads, the layer that's doing all the hard work is hidden. In
its place is a "please wait" layer.
When the code finishes in the hidden layer - which you could detect using
the "onLoad" function, or just drop out a bit more JavaScript when it
completes - a JavaScript call is executed which hides the "please wait"
layer and displays the hidden layer with the results it needs to display,
thus ...
//here you place the ids of every element you want to manage/toggle.
var ids=new Array('pleasewait', 'maincontent');
function switchid(id){
hideallids();
showdiv(id);
}
function hideallids(){
//loop through the array and hide each element by id
for (var i=0;i |
 |
|