Skip to content

Instantly share code, notes, and snippets.

@RobertFischer
Forked from usman88/.js
Created August 17, 2015 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertFischer/beb5b0109a38844958de to your computer and use it in GitHub Desktop.
Save RobertFischer/beb5b0109a38844958de to your computer and use it in GitHub Desktop.
var handle = null;
handle = $.PeriodicalUpdater('/notifications', {
method: 'GET',
data: id: $field_id,
cookie: false,
maxTimeout: 5000,
error: function (xhr,status,message) {
// Do stuff
handle.stop();
}
}, function (remoteData, success, xhr, handle){
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment