PDA

View Full Version : Pause in javascript



steved
03 May 2011, 12:32 AM
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
03 May 2011, 12:44 AM
I think I fixxed it. Thats what I get for learning to program with TIBASIC.
while (q == 0)