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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP delay

Status
Not open for further replies.

luftwalk

Programmer
May 15, 2001
9
SI
Hi!

I want to create a delay in my asp page, but i don't want to use up my cpu resources during that delay. That's why i don't want to use loops or anything like it.

If anybody could help me, i'd really appreciate it.

tnx,

Bostjan
 
What are trying to accomplish? Will the asp be looping or are you waiting on an external process?
 
i have to update a certain database and it has to be done every 5 minutes. in the mean time, the cpu has to be idle.

 
Here is an idea. Use setTimeout Method.
It evaluates an expression after a specified number of milliseconds has elapsed.

I use this code to have my.asp run every 15 seconds.

<BODY onLoad=&quot;setTimeout('myFunction();',15000)&quot;>&quot;

<script language=javascript>
function myFunction()
{
location='my.asp'; //you can append whatever query string
}
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top