Skip to content

Instantly share code, notes, and snippets.

@kylejohnson
Created November 21, 2013 14:13
Show Gist options
  • Select an option

  • Save kylejohnson/7582190 to your computer and use it in GitHub Desktop.

Select an option

Save kylejohnson/7582190 to your computer and use it in GitHub Desktop.
// Monitor State Polling //
setTimeout(function() {
$(".monitor").each(function () {
var id = $(this).attr("id");
id = id.split("_");
id = id[1];
$.post('/Monitors/check_state/' . id, function(data) {
console.log(data);
})
})
}, 10);
// Monitor State Polling //
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment