Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Long Polling (Recommened Technique - Creates An Open Connection To Server ∴ Fast)
- (function poll(){
- $.ajax({ url: "server", success: function(data){
- //Update your dashboard gauge
- salesGauge.setValue(data.value);
- }, dataType: "json", complete: poll, timeout: 30000 });
- })();
Add Comment
Please, Sign In to add comment