Skip to content

Instantly share code, notes, and snippets.

@zfogg
Created September 27, 2012 04:31
Show Gist options
  • Save zfogg/3792164 to your computer and use it in GitHub Desktop.
Save zfogg/3792164 to your computer and use it in GitHub Desktop.
//Correct way:
window.setInterval(function() {
$.get("/minus/new?folderurl=" + $("#folderurl").val(), function(data) {
$("#progress").html(data);
})
}, 1000);
//You had this:
window.setInterval($.get("/minus/new?folderurl=" + $("#folderurl").val(), function(data) {
$("#progress").html(data);
}), 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment