google-sites

How to create a cookie on a Google site?

爷,独闯天下 提交于 2020-01-17 10:07:17
问题 I created a Google site page with 5 links on it. Is it possible to create on my site a script or something that stores in a cookie the link on which the user has clicked, and then the next time he will connect to the page, he will be automatically redirected to the link he clicked on ? For information, the user connect to the site with his Google email account. How can I do that please? Thank you very much in advance for your help 回答1: While it is possible to read cookies and redirect using

How to create a cookie on a Google site?

二次信任 提交于 2020-01-17 10:07:08
问题 I created a Google site page with 5 links on it. Is it possible to create on my site a script or something that stores in a cookie the link on which the user has clicked, and then the next time he will connect to the page, he will be automatically redirected to the link he clicked on ? For information, the user connect to the site with his Google email account. How can I do that please? Thank you very much in advance for your help 回答1: While it is possible to read cookies and redirect using

I can't update script on Google App Script

走远了吗. 提交于 2020-01-11 06:55:29
问题 I use Google App in my company, and I often have a prob when I update my script. When I Update my script , my Webpage on Google sites is not updated , and for long time. I must create a new script when I update my script. Can I resolve this problem ? regards 回答1: There are two ways to publish your code: A) Either by deploying a new version, which is done as follows: File -> Manage Versions Add a new version -> Close dialog Publish -> Deploy as web app Select the version added -> Update B) Or

Google App Script background transparent with HtmlService

十年热恋 提交于 2020-01-10 19:49:05
问题 I'm using google apps script for a google site, and i can easily create a transparent background by using UiApp.createApplication().setStyleAttribute("background","transparent") . Now, I'm trying to create the script using HtmlService.createHtmlOutput() , but i can't figure out how to make the app's background transparent. any ideas? 回答1: If your Site background is a Theme, I can't find a way to match the Apps Script Gadget background to the theme. But if the Site background is a solid color,

View specific row based on username in Google Sheets

佐手、 提交于 2020-01-04 06:29:08
问题 Let's say I have a google site. On the site is a gadget to a spreadsheet. I want the gadget to show one specific row from the spreadsheet based on the username of the person viewing the site. Is this possible with GAS? Update: function onOpen() { var ss = SpreadsheetApp.openById("abcdefg123456789"); var first = ss.getSheetByName("first"); var maxRows = first.getMaxRows(); var email = Session.getActiveUser().getEmail(); //show all the rows first.showRows(1, maxRows); var data = first.getRange(

Invoke app scripts with parameters from classic google site

ε祈祈猫儿з 提交于 2020-01-03 00:28:31
问题 This is related to a question I have posted previously. I have a batch of CSV files that contain a data set obtained from an issue tracker tool. These I've uploaded to google drive and are presented as charts and lists from a google site. This works reasonable well as all I now have to do is update the files in google drive and the site is automatically updated. The displayed charts work well, but I want to present the lists as an HTML table (as opposed to an embedded sheet). An app script

Upload file to a Google Site from C# Code

南楼画角 提交于 2019-12-25 15:18:31
问题 Any idea of how to upload a file to Google site from c#? I am trying to upload but getting a 403 error. However, I am using the same credentials to connect to the site and get the list of attachments and pages present on the site. Any help would be greatly appreciated!! 回答1: They most likely have an anti-CSRF scheme that stores temporal identifiers in the page and/or cookies, this is specifically to hinder bots. You are most likely submitting a request without the proper CSRF tokens and get

Upload file to a Google Site from C# Code

一世执手 提交于 2019-12-25 15:18:04
问题 Any idea of how to upload a file to Google site from c#? I am trying to upload but getting a 403 error. However, I am using the same credentials to connect to the site and get the list of attachments and pages present on the site. Any help would be greatly appreciated!! 回答1: They most likely have an anti-CSRF scheme that stores temporal identifiers in the page and/or cookies, this is specifically to hinder bots. You are most likely submitting a request without the proper CSRF tokens and get

Get Google Username with oAuth in XML

别等时光非礼了梦想. 提交于 2019-12-25 11:26:21
问题 I'm having trouble right now getting the username of the logged in Google User. I want to get the Data I need from this Link: https://accounts.google.com/o/oauth2/auth? scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile& state=%2Fprofile& redirect_uri={REDIRECT_URL} response_type=token& client_id={CLIENT_ID} this link authenticates with oAuth and gets my Account information, but i don't want to use a "Redirect_URL" i just

Google Site Hover Card

非 Y 不嫁゛ 提交于 2019-12-25 05:51:31
问题 On a Google Site I want to be able to show a hover card with additional information (picture, etc) if the user moves his mouse over a name. I've found ways to achieve this through Java Script and CSS, but I can't get either method to work for Google Sites. How can I achieve this aim? 回答1: You can integrate you script ( javascript , css ) on the Google Sites with app engine. https://developers.google.com/appengine/?csw=1 You can download this Application , put your script in the cloub and