reload page google apps script

匿名 (未验证) 提交于 2019-12-03 01:45:01

问题:

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.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!