Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function poll() {
- setTimeout(function () {
- $.ajax({
- url: 'path/to/resource',
- dataType: 'json',
- complete: poll,
- success: function (data) {
- // dolgozd fel a data-t
- }
- })
- }, 500);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement