Results 1 to 2 of 2

Thread: Pause in javascript

  1. #1
    steved is offline New Member: Posts Will Be Moderated
    Join Date
    May 2011
    Posts
    3

    Pause in javascript

    I have an app that has two sections of code that needs a pause between the two. I was hoping to keep them as a single function using the following code:

    Code:
    var q = 0
            while (q = 0) {
                setTimeout('q = 1', 15000)
            }
    This does not seem to be working any suggestions?

  2. #2
    steved is offline New Member: Posts Will Be Moderated
    Join Date
    May 2011
    Posts
    3
    I think I fixxed it. Thats what I get for learning to program with TIBASIC.
    while (q == 0)

Posting Permissions

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