Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PLease help page loading query

Status
Not open for further replies.

Antialice

Technical User
Nov 1, 2002
4
IE
How can I make a page wait before loading using asp?
 
What do you mean by waiting to load? Do you mean in the browser?

If you could give me a little more information of what you are trying to do I may be able to help you.

The first thought though it to set
Code:
Response.Buffer = True

Thanks,

Gabe
 
What i am trying to do is making the page wait about 5 seconds and then load how could i do this?
Only angel's play poker with the devil at the gates of utopia
 
Mmm, not sure you can do this server side...why not look at my posted response here: thread333-395152

All you would need to do to delay the page coming up is make the loading image the same color as your background and instead of makeing it disappear immediately in the onLoad event, use the javascript setTimeout to wait 5 seconds.
Code:
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!--
function hideLoadImg(){
	document.getElementById('pageLoadImg').style.display='none';
}
//-->
</SCRIPT>
</head>
<body onLoad=&quot;setTimeout('hideLoadImg()',5000);&quot;>
Double check my wait time, I'm always bad at remembering which function uses what time scales.

Another option is to have an intermediary page that refreshes to the final page after 5 seconds (meta refresh perhaps) but you will lose your form information this way without creating a lot of code to pass it on.

Just some ideas,
-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
For my next trick I will pull a hat out of a rabbit (if you think thats bad you should see how the pigeon feels...) :p
 
Ok cheers
Only angel's play poker with the devil at the gates of utopia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top