|
| 28 Nov 2012 04:04 PM |
| Is There any wait/sleep/etc Function in Javascript? |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 05:14 PM |
| You can use the setTimeout or setInterval functions. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 05:16 PM |
| Found this out in 2 seconds from google. You should try it |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 05:26 PM |
| Well I trust Scripting Helpers a lot more than google. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 05:31 PM |
So you trust a bunch of teenagers more than the largest supply of information ever created?
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]- |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 05:33 PM |
| The Internet isn't always true, so Yes, I trust this forum since It has scripters where google may show Me things People randomly made. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 05:41 PM |
| How about a javascript programming forum? =D |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Nov 2012 05:49 PM |
"Well I trust Scripting Helpers a lot more than google."
I hope I read that wrong. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 06:09 PM |
I just started learning Java. Loul.
- thedestroyer115 |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 09:28 PM |
Let Me re-phrase my Statement...
I perfer to ask People on the Site that I'm currently on that I know have Experiance, before checking Hundreds of Links that I don't know where They go exactly that might not even have what I'm looking for. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 09:29 PM |
That's what StackOverflow is for.
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]- |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 09:30 PM |
| Well there aren't alot of Lua scripers that know JavaScript. There are some, but I doubt there are any that will post. Just go with google, or bing. Whatever. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 09:31 PM |
| @LUV, "Scripting Helpers", not "Lua Scripting Helpers", even if I do have to check google, I would perfer to check Here first. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 09:33 PM |
| "This is the place to share your 1337 Lua programming skills and help others". It's for Lua, and im discourging the idea, just recommending you to use google, or bing. Like I said. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 09:34 PM |
Go to StackOverflow and ask these questions. It's basically Scripting Helpers for EVERY LANGUAGE EVER :D
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]- |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 09:34 PM |
My bad. That was a mistake.
and im NOT discourging the idea. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 10:23 PM |
I have learned some java and I think this will help
if you are looking for something like wait () in Lua it's basically setInterval ()
example:
setInterval (function () {alert ("Hello")}, 3000)
this example would alert hello every 3 seconds (that would get annoying though) |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 10:25 PM |
| Time must be in milliseconds |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2012 10:30 PM |
| I highly recommend codecademy.com. it is a wonderful place to learn html, java, ruby, jquery and even python. Yes, those are all coding languages. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2012 06:05 AM |
| setInterval and setTimeout I believe |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2012 04:45 PM |
So this would be how I use it, if I wanted it to wait 10 Seconds then pop up an Alert?
setTimeout (function () {alert ("Waited 10 Seconds")}, 10000)
? |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2012 05:32 PM |
| yea, that's exactly it! either settimeout or setinterval |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2012 05:48 PM |
| with Setinterval You mentioned it keeps repeating, does settimeout work like a lua wait() ? |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2012 05:48 PM |
| Or like a delay(10,functionname) ? |
|
|
| Report Abuse |
|
|