feklee
feklee

Reputation: 7705

Polling a spreadsheet?

In a Google Apps Script web app (doGet()), I want to refresh display once a certain spreadsheet changes. I was thinking about polling the spreadsheet every ten seconds or so. However, there seems to be no timer, only an ugly workaround (though, smart it is).

Any idea how to realize an automatic refresh?

Upvotes: 0

Views: 807

Answers (1)

Henrique G. Abreu
Henrique G. Abreu

Reputation: 17752

If you use HtmlServices to build your app, then you'll have javascript regular setTimeout function where you can configure your timer easily. On UiApp though, I think you're restricted to the very smart workaround you linked.

Upvotes: 2

Related Questions