Is there any JavaScript method similar to the jQuery delay() or wait() (to delay the execution of a script for a specific amount of time)? 15 Answers 15
Please tell me how to write javascript below in coffeescript. setTimeout(function(){ something(param); }, 1000); 6 Answers 6
I am learning JavaScript and I have learned recently about JavaScript timing events. When I learned about setTimeout at W3Schools, I noticed a strange figure which I didn’t run...
I am working on upgrading some old TypeScript code to use the latest compiler version, and I’m having trouble with a call to setTimeout. The code expects to call...
How do I pass context into setTimeout? I want to call this.tip.destroy() if this.options.destroyOnHide after 1000 ms. How can I do that? if (this.options.destroyOnHide) { setTimeout(function() { this.tip.destroy() },...
I am trying to use the new async features and I hope solving my problem will help others in the future. This is my code which is working: async...
I have some JavaScript code that looks like: function statechangedPostQuestion() { //alert("statechangedPostQuestion"); if (xmlhttp.readyState==4) { var topicId = xmlhttp.responseText; setTimeout("postinsql(topicId)",4000); } } function postinsql(topicId) { //alert(topicId); } I get...