{"version":"1.0","type":"rich","title":"Simple Long Polling Example with JavaScript and jQuery by Tian Davis (@tiandavis) from Techoctave.com (http://techoctave.com/c7/posts/60-simple-long-polling-example-with-javascript-and-jquery)","description":"This example demonstrates three polling techniques for updating a sales dashboard gauge with server data. It shows long polling using jQuery’s `$.ajax` with a `complete` callback that immediately re-issues the request, creating an open connection for fast updates, while also handling Firefox’s timeout quirk via `setTimeout`. In contrast, recursive polling uses `setTimeout` to schedule a new AJAX call after each response, and traditional polling relies on `setInterval` to fire requests every 30 seconds. All three use `dataType: \"json\"` and call `salesGauge.setValue(data.value)` on success, with the animation visible as the gauge updates.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-1fb396f86b8df647e4d3e86f35364e1b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}