可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
How do i reload a page in google sites using google apps script? I have a function that creates a form and another function doPost to collect the data submited in the form and writes it in a spreadsheet. The spreadsheet is embbeded in the same page and i want the page to reload to update the view in the spreadsheet.
I tried to find some function or service in Site Services and Ui Services.
here are the code
回答1:
I've not done much work with Spreadsheets but perhaps you could work around the restrictions, the other answerers have stated.
- Could you write a script in your Spreadsheet to refresh itself in order to poll for new data?
- Or could you move the form to be part of the Spreadsheet? Perhaps a button on the Spreadsheet could launch the form as a UiApp?
回答2:
It is not possible using Google Apps Script as Apps Script can not interact with browser objects.
回答3:
I think that what you are trying to accomplish is not possible due to security restrictions.