google-sites

ReferenceError: google is not defined - Google Apps script error in Mozilla firefox

孤街浪徒 提交于 2021-02-10 21:58:56
问题 I'm creating a Google Site with Google Apps Script "Enum Sandbox Iframe mode". In Google Developer Docs, It says, to call a custom function, we need to use google.script.run Sample: Code.gs function doGet() { return HtmlService.createHtmlOutputFromFile('index') .setSandboxMode(HtmlService.SandboxMode.IFRAME); } function doSomething() { Logger.log('I was called!'); } index.html <script> google.script.run.doSomething(); </script> When I run this using Google Chrome, Its working perfect. But it

Form redirecting in new google sites

走远了吗. 提交于 2021-02-08 10:47:39
问题 I created a form using the app script. In the html file I have the below; <form name="Subscribe-to-Central" id="Subscribe-to-Central" action="https://script.google.com/macros/s/key/exec" method="POST" onsubmit="myFunction()"> Inputs .. </form> <script> function myFunction() { alert("Successfully subscribed. Please press okay to return to the home page"); window.open("URL", "_top"); } </script> The form is working good at which sending the date to the attached sheet and also redirecting to the

Form redirecting in new google sites

笑着哭i 提交于 2021-02-08 10:45:21
问题 I created a form using the app script. In the html file I have the below; <form name="Subscribe-to-Central" id="Subscribe-to-Central" action="https://script.google.com/macros/s/key/exec" method="POST" onsubmit="myFunction()"> Inputs .. </form> <script> function myFunction() { alert("Successfully subscribed. Please press okay to return to the home page"); window.open("URL", "_top"); } </script> The form is working good at which sending the date to the attached sheet and also redirecting to the

Unauthorized 401 error while 'execute as me'

Deadly 提交于 2021-02-05 07:01:48
问题 I am struggling with a web app I have deployed. When the site permission is available to 'all with the link', as the app is set to 'execute as me', a spreadsheet is properly removed from my drive and a new file created. If I restrict access to certain email addresses, the code no longer works. I tried passing a token using var auth = ScriptApp.getOAuthToken(); var header = { "authorization": "Bearer " + auth }; var params = { 'method':'post', 'headers':header, 'muteHttpExceptions':true}; var

how to add custom javascript to google sites?

穿精又带淫゛_ 提交于 2021-02-04 10:58:27
问题 How do I get the ability to add/edit the JS on a google sites site? This way I want to use jQuery and jQuery UI to manipulate the look and feel of the site. To be clear, I am not talking about all google sites, just the create-your-own system google has made, called "Google Sites" -> https://sites.google.com/. On the howto page, there is this: Unsupported features The HTML Box tool currently doesn't support the following features: iframes JavaScript code can't create any script, image or link

No SSL in GSuite Education Classic Sites

折月煮酒 提交于 2021-01-29 17:33:11
问题 I want to use Google Sites API to automate site creation. Therefore I'm using Google Classic Sites. When I create a classic site in my GSuite Education Account.It does not include a proper SSL certificate. GSuite Education classic sites not comes with SSL. Is it a bug in Google ? This is my sample site https://sites.google.com/a/sci.pdn.ac.lk/batch101/ 来源: https://stackoverflow.com/questions/63647201/no-ssl-in-gsuite-education-classic-sites

Accessing a non-Public Google Sites page using curl + Bearer Token

◇◆丶佛笑我妖孽 提交于 2021-01-29 10:30:48
问题 I need to access non-Public Google Site using Curl. Is it possible to GET a Google Site page using curl and sending in Bearer Token as part of the Authorization header? I usually do this with Spreadsheets. But can't get it to work with Google Sites. 回答1: This is not possible currently with the new Google Sites. Google doesn't provide an API for this. 来源: https://stackoverflow.com/questions/50477342/accessing-a-non-public-google-sites-page-using-curl-bearer-token

Add dropdown box in Google site

爱⌒轻易说出口 提交于 2021-01-28 09:35:54
问题 I have some data in Google sheet. How can i extract the data based on user request as per a dropdown box and generate it in Google Site . The challenges iam faced with. Prob_1- using a dropdown box in Google site Prob_2- generate dynamic data ( or table ) in google site from the Google spreadsheet. Analysis_1 - I have made a detailed study and understood that only using a third party plugin , i can make a select box. As a newbiew, needed some guidelines based on this. Is it not possible

Google Apps Script remove warning banner

风格不统一 提交于 2020-11-24 16:40:19
问题 I am putting a GeoChart on my Google Site using a Google Apps Script. Viewing the page when I am not logged into my google account shows a grey banner at the top with states: "This application was created by another user, not by Google." See it here. Is there a way to remove this banner or move it to the bottom of the page so it looks better? I found a short discussion here (see fourth comment), but this did not work with the HtmlOutput object I am using in the doGet function doGet() { return

Google Apps Script remove warning banner

我们两清 提交于 2020-11-24 16:22:09
问题 I am putting a GeoChart on my Google Site using a Google Apps Script. Viewing the page when I am not logged into my google account shows a grey banner at the top with states: "This application was created by another user, not by Google." See it here. Is there a way to remove this banner or move it to the bottom of the page so it looks better? I found a short discussion here (see fourth comment), but this did not work with the HtmlOutput object I am using in the doGet function doGet() { return