Click to See Complete Forum and Search --> : Displaying A Text While Page Loads


HushPuppy
January 21st, 2004, 06:41 AM
Hello,
How can i display a message (please wait) untill the page is fully loaded into the screen?

thanks,
:confused:

womalley
January 21st, 2004, 07:14 PM
before you run your code in page load

Response.Write("<SCRIPT LANGUAGE=\"JavaScritp\">window.status=\"Page Loading, Please wait....\"</SCRIPT>");



try that

Will

khatas
February 26th, 2004, 01:40 PM
I tried it, It did not work. can u suggest anything else

stevehoang
February 26th, 2004, 05:36 PM
Create a DIV with hidden attribute, and when before the page is redirect to another page then show it


function OnPageLoad ()
{
waitWindow.style.display = "none";
}

function SubmitData (eForm)
{
// display wait window
waitWindow.style.top = (document.body.offsetHeight / 2) - (50 / 2);
waitWindow.style.left = (document.body.offsetWidth / 2) - (350 / 2);
waitWindow.style.display = "";
return (true);
}


...

<body>
<DIV id="waitWindow" style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; DISPLAY: none; BORDER-LEFT: black 1px solid; WIDTH: 350px; COLOR: blue; PADDING-TOP: 15px; BORDER-BOTTOM: black 1px solid; POSITION: absolute; TOP: 10px; HEIGHT: 50px; BACKGROUND-COLOR: lightgrey;"
align="center"><b>Please wait...</b>
</DIV>
<form>
...
</form>
</body>

khatas
February 27th, 2004, 10:22 AM
Thanks a lot for the help