ASP setTimeout Function

Results 1 to 2 of 2

Thread: ASP setTimeout Function

  1. #1
    Join Date
    Dec 1969

    Default ASP setTimeout Function

    I am looking for a way to wait a number of seconds in between functions similiar to Javascripts setTimeout function. Any ideas??<BR><BR>I have come up with the code below but I&#039;m not sure how friendly that would be on a production server.<BR><BR>Sub Wait(intWait)<BR>Dim intStartTime, intLoopTime<BR> intStartTime = Timer<BR> Do until intLoopTime &#062; intStartTime + intWait<BR> intLoopTime = Timer<BR> Loop <BR>End Sub<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default Need external component...

    That is *VERY VERY VERY* unfriendly to the server! Especially in the way MS tends to balance CPU usage between threads.<BR><BR>Don&#039;t do it. Your ISP *will* cut off your service, I betcha.<BR><BR>But look at -- they have a freebie "wait" component you can download. <BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts