I\'m trying to disable a button, hide a select list & show some text once a button is clicked... because of how long the javascript can take I am using timeouts to prevent the browser locking &
This might be best explained with a code example... Object_A = { testLoop:function(){ log(\"running\"); setTimeout(Object_A.testLoop, 1000);
A couple years ago I was warned against using setInterval for long periods of time as it supposedly would cause the browser to hang if the called function ran longer than the designated interval, and
Currently I am using function showGrowl(lastNumber) { var num = lastNumber; //keep generating a random number untill it is not the same as the lastNumber used
So, am I missing something here? All javascript engines in popular modern browsers (as of 2011) are single-threaded.
I am unable to find out more about this default parameter that I ran across and was hoping that someone could point out an explanation.
I have implemented a script I found for the autosuggestion for queries. The problem is, he is calling the script each time I push a key. I tried to add a timeout but it still making troubles.
Today, I was making a loop with a setTimeout(). Unfortunately, some function parameters were getting strange values.
I have a JQuery\'s .each loop that calls a function with a parameter per iteration, is there a way to delay this function call? I have tried setTimeout as in the following but this does not work as th
So, I need to remove a div once the flash has finished playing. I am using this so far (the first function is to show the flash div on hover, the 2nd to remove it.):