Skip to content

Instantly share code, notes, and snippets.

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