google-sites

How to add Google Drive Scripts project into Google Sites?

让人想犯罪 __ 提交于 2019-12-24 12:45:32
问题 I want to embed Google Drive Scripts/ project from Google Sites but I can not. Google Sites alert me with a message This url is not recognised as a valid Apps Script after I created project-script from Google Drive, added a function function doget(e) { code; code; code; ... } , published the script ( "Deploy as web app" ), retrieved the link link (e.g: https://script.google.com…1DkWAQ/exec ), and in the Google Sites page, I edited page and inserted a script from menu: Insert > Apps Script

Prevent Blank Page and Display Data in Table

扶醉桌前 提交于 2019-12-22 19:42:14
问题 I have a working code in Google Script that is compost on Index.HTML and code.gs actually this code is working if you will test it in your google app script and here it is Index.HTML <!DOCTYPE html> <html> <head> <base target="_top"> <script> function displayMessage() { var searchTerm; searchTerm = document.getElementById('idSrchTerm').value; console.log('searchTerm: ' + searchTerm ); google.script.run.withSuccessHandler(handleResults).processForm(searchTerm.replace("'","\'")); } function

Google Apps Script Gadget URL parameters are ignored when embedded in a Google Site

痞子三分冷 提交于 2019-12-22 18:38:39
问题 I am trying to embed an Apps Script gadget with its URL parameters in a Google Site but the rendered gadget ignores the URL parameters. It can retrieve only Google-site-url parameters. Please check it here. Apps Script code for the Gadget is function doGet(e){ var app = UiApp.createApplication(); if(e.parameter.page == 'hello') app.add(helloPanel_()); else app.add(hiPanel_()); return app; } function helloPanel_(){ var app = UiApp.getActiveApplication(); return app.createLabel('You are at

Create Dynamic pages in asp.net mvc

别等时光非礼了梦想. 提交于 2019-12-21 21:42:44
问题 I need to integrate the functionality of creating dynamic pages (like google sites) to my regular asp.net mvc(C#) application. I like to write my own code with database. Any suggestions or reference for this? 回答1: You might want to read this article by Phil Haack, Scripting ASP.NET MVC Views Stored In The Database. 来源: https://stackoverflow.com/questions/1617463/create-dynamic-pages-in-asp-net-mvc

Using responsive design within Google Sites

时光毁灭记忆、已成空白 提交于 2019-12-20 10:35:01
问题 Is there a way to use responsive design principles with Google Sites. Has anyone tried that. Could you direct me to a sample site. I looked at this google help topic but then that is supposedly about exclusively mobile sites. My main focus is a normal website which is optimized for web rather than primarily a mobile site. Alternatively would Blogger be a better option in this case as that allows to change CSS. 回答1: I think your negative impression is right. It doesn't implement the features

How to create expandable FAQ page in HTML?

跟風遠走 提交于 2019-12-18 03:39:36
问题 I'd like to create an FAQ page for my website that lists all of the questions as hyperlinks. When the link is clicked, the answer for that question should expand out beneath it. The answers need to be hidden by default, and preferably clicking the link toggles the answers' visibility. Any thoughts? Edit I've tried several of the suggestions, but unfortunately it looks like google sites doesn't allow any of that functionality in the html. I can't use scripts, styles, embed, iframe, or anything

Automatically Redirecting to a Page

亡梦爱人 提交于 2019-12-17 18:38:24
问题 Inside a button click handler, I'm creating a new web page like so: var page = SitesApp.getPageByUrl(url).createPageFromTemplate(title, name, template); and I want to redirect the user automatically to that page. I wasn't able to find much information, can this be done? 回答1: This cannot be done in UiApp but it's doable in HtmlService: function doGet() { return HtmlService.createHtmlOutput( "<form action='http://www.google.com' method='get' id='foo'></form>" + "<script>document.getElementById(

Find apps script published URL from file URL - search files by published Web App URL

◇◆丶佛笑我妖孽 提交于 2019-12-13 18:08:11
问题 We inherited quite a few Google Apps Script projects from our client's previous developer. The Apps Scripts are deployed on Google sites (sites.google.com) to various pages through embedded widgets. Whenever we have needed to work on one of them, we have been able to locate the project by: Going to the page at sites.google.com that contains the widget, Editing the widget, Noting the published URL, Going to script.google.com, Open/edit projects that are named "like" what we are looking for,

Getting UI form to render inside HTML table in GAS

穿精又带淫゛_ 提交于 2019-12-13 07:07:31
问题 In Google Sites, I am trying to add a short form consisting of a text box and a submit button as a cell in a row inside an html table. One copy of the form for each row in the table. I am trying to collect input data for each table row. HTML File: <html> ... function showForm(){ // https://developers.google.com/apps-script/gui_builder#including var app=UiApp.createApplication(); app.add(app.loadComponent("myGui")); return app; } ... <table><tr><td><?=showForm()?></td></tr></table> ... </html>

Only show a portion of a live Google sheet

坚强是说给别人听的谎言 提交于 2019-12-13 03:46:21
问题 I want to embed a live Google Sheet inside of new google sites. works fine but I want to hide/remove the title row and column headers and just show the workspace area I have tried the following iframe code ( below ) in New Google sites and it still displays titles, row and column headers Could you tell me what I am missing? <iframe width="100%" height="400" src="https://docs.google.com/spreadsheets/d/SHEET_id/edit?usp=sharing&single=true&widget=true&headers=false"></iframe> I have published