Skip to content

Instantly share code, notes, and snippets.

@mpickering
Created September 4, 2012 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpickering/3620666 to your computer and use it in GitHub Desktop.
Save mpickering/3620666 to your computer and use it in GitHub Desktop.
for (i in ids){
setTimeout(function(){
$.post('track',{id:ids[i]}, function(data){
done = done+1
setProgress(done,total)
console.log(data)
})}, i*1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment