1.0.5 • Published 6 years ago

jquerypoll v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

$.poll

Allows you to poll an AJAX call until your pre-defined condition is met. Ideal for displaying a spinner until an action is complete.

Build

Build Status

API

/*
url: Points to the GET endpoint from where to poll
interval_in_milliseconds: Interval between calls to the url
terminator_callback: A callback function that returns true to indicate end of polling
*/
$.poll(urlToPoll, intervalInMilliseconds, terminatorCallback)
$.poll('http://my/url', 100, (xhr, status, data) => {
    return data.hello === 'world';
})
1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago