PDA

View Full Version : Pause in javascript



steved
02 May 2011, 11:32 PM
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:


var q = 0
while (q = 0) {
setTimeout('q = 1', 15000)
}

This does not seem to be working any suggestions?

steved
02 May 2011, 11:44 PM
I think I fixxed it. Thats what I get for learning to program with TIBASIC.
while (q == 0)