Results 1 to 2 of 2

Thread: doevents?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    doevents?

    is there a way to create a loop that runs forever in the background and updates a text field on the website? when i type in doevents it highlights it like its a keyword but gives a script error when loading the page

    i want to make a countdown in vbscript thats accurate to a second and counts down in real time and just places the count in a FONT tag, the only thing i need is how to perform the loop without locking up the webpage

    thanks
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    The ASP has to run to completion, so you can't have an indefinate loop, you could never finish loading the page.

    You can do the same thing you want to do with a client side script. Look up the doco on setTimeout().
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

Posting Permissions

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



Click Here to Expand Forum to Full Width