Skip to content

Instantly share code, notes, and snippets.

@alanmulhall
Created February 25, 2014 06:23
Show Gist options
  • Save alanmulhall/9203761 to your computer and use it in GitHub Desktop.
Save alanmulhall/9203761 to your computer and use it in GitHub Desktop.
//http://techoctave.com/c7/posts/60-simple-long-polling-example-with-javascript-and-jquery
(function poll(){
$.ajax({ url: "server", success: function(data){
//Update your dashboard gauge
salesGauge.setValue(data.value);
}, dataType: "json", complete: poll, timeout: 30000 });
})();
@arielrecto
Copy link

Hello

@arielrecto
Copy link

Hi

@arielrecto
Copy link

He

@arielrecto
Copy link

Wazzupp

@arielrecto
Copy link

Hey

@arielrecto
Copy link

He

Yow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment