Apps Script: HTML Templating

  Рет қаралды 32,250

Jordan Rhea

Jordan Rhea

Күн бұрын

Пікірлер
@surajb5139
@surajb5139 4 жыл бұрын
Thanks for the explanation. I have a question here. Will the scriplets/printed scriplets work with html called from container bound scripts or will it work only when the html is called from a doGet() function in a webapp standalone script?
@applicationexplorer9818
@applicationexplorer9818 4 жыл бұрын
The browser is NOT displaying the static map images, any idea why?
@db2leader
@db2leader 4 жыл бұрын
Awesome Videos Jordan! I'm stuck in a pinch and need help! I've built an application that displays topics for a number of day. Every "day" page is populated by looping through my days sheet and then it pops it in to a htmlTemplate and sends it back to my main application. The trouble is, its tooo slow! Any ideas?
@israelrivera4467
@israelrivera4467 2 жыл бұрын
Hey everyone, can someone tell me how I form a scriplet: . Is it in the Appscript code, HTML or withing scriplet? I already tried some thing, did not work. Thank you for your help.
@jeannettemillandvigio3579
@jeannettemillandvigio3579 6 жыл бұрын
When you got an using the gs published url ( because the lacking of the spreasheet key between /d/ and /edit), was there a way to avoid this error from happeding from the begining. Where should I have put the Google Spreasheet key while coding?
@JordanRhea
@JordanRhea 6 жыл бұрын
Hopefully I answered this question above
@admireargumentactivity
@admireargumentactivity 7 жыл бұрын
Nice work on all your videos! Watched a ton got way more to go, whats your background?
@JordanRhea
@JordanRhea 6 жыл бұрын
Sorry Martin! I never replied to this. My background is in English education.
@1endell
@1endell 5 жыл бұрын
Very nice, man! Excellent work
@TECLEMAIS
@TECLEMAIS 2 жыл бұрын
Show, tem como adicionar um favicon?
@jeannettemillandvigio3579
@jeannettemillandvigio3579 6 жыл бұрын
Correction When you got an error using the gs published url ( because the lacking of the spreasheet key between /d/ and /edit), was there a way to avoid this error from happeding from the begining. Where should I have put the Google Spreasheet key while coding?
@JordanRhea
@JordanRhea 6 жыл бұрын
Hi Jeannette, good question. Basically, if your script is opened from inside a spreadsheet, doc, or what-have-you then you can use the method .getActiveSheet(). However, if you create a stand-alone script file, you need to use the key. Does the answer your question?
@jeannettemillandvigio3579
@jeannettemillandvigio3579 6 жыл бұрын
In your tutorial, it is a stand-alone script, so you need to insert the key somewhere in the code. Where would you place it? function doGet(e) { var SHEET_ID = e.parameter.sheet_id; var html = HtmlService.createTemplateFromFile('summerVacation'); var responses = SpreadsheetApp.openById(SHEET_ID); html.responses = parseResponses(responses.getDataRange().getValues()).sort(function(a,b) {return new Date(a.start) - new Date(b.start);}); return html.evaluate().setTitle('Summer Vacation Schedule'); }
@jeannettemillandvigio3579
@jeannettemillandvigio3579 6 жыл бұрын
I receive Bad value (line 4, file "Code") This is my script url script.google.com/a/upr.edu/macros/s/AKfycbw5rYnlHEu0cuz--7ec0391Ho6IjzQTJzL_yBzL3wk/dev and my key is 1wVr5vmgFMmlLjzYLTGRjwSDfx3yl7Tgc5ukqfvfdA5U I see that I have to follow my script url with a ?sheet_id= so it shoul be script.google.com/a/upr.edu/macros/s/AKfycbw5rYnlHEu0cuz--7ec0391Ho6IjzQTJzL_yBzL3wk/dev?sheet_id=1wVr5vmgFMmlLjzYLTGRjwSDfx3yl7Tgc5ukqfvfdA5U but I would prefer to code it and not to have to enter it every time
@jeannettemillandvigio3579
@jeannettemillandvigio3579 6 жыл бұрын
I still showing an error, should be another kind of type from myself This is what I have .vacation { display: inline-block; position: relative; color: white; } .vacation h3, .vacation h6 { position: absolute; background-color: darkgreen; color:white; padding:4px 12px; opacity:1; transition: all 0.3s; } .vacation h3:hover, .vacation h6:hover { opacity:0; } .vacation h3 { top:20px; } .vacation h6 { bottom:20px; right:0; } .vacation: hover h3, h6 { opacity:1; }
@jeannettemillandvigio3579
@jeannettemillandvigio3579 6 жыл бұрын
Where should I place the key?
@gemavision7330
@gemavision7330 7 жыл бұрын
Muito bom. Obrigado por compartilhar.
@JordanRhea
@JordanRhea 7 жыл бұрын
Gracias!
@thenextbigthingsearchwithi3719
@thenextbigthingsearchwithi3719 5 жыл бұрын
that really shows how powerful app script is very wonderful indeed
@MarisolFlores-jx6bg
@MarisolFlores-jx6bg 4 жыл бұрын
Buen dia me marca un error en: var html=HtmlService.createTemplateFromFile("formulario2"); podria ayudarme codigo: var sheetId=e.parameter.sheet_id; var html=HtmlService.createTemplateFromFile("formulario2"); var responses=SpreadsheetApp.openById(sheetId);
@RolandKuka
@RolandKuka 6 жыл бұрын
very good tutorial. Thank you
@jeannettemillandvigio3579
@jeannettemillandvigio3579 7 жыл бұрын
You are a TREASURE!
@ryaa4494
@ryaa4494 7 жыл бұрын
why i got an error in line 11 from code file
@JordanRhea
@JordanRhea 6 жыл бұрын
I think that is because I forgot to put the spreadsheet key in. I corrected myself later in the video.
@ryaa4494
@ryaa4494 6 жыл бұрын
Jordan Rhea ok,thanks
@julia.vasilieva
@julia.vasilieva 5 жыл бұрын
@@JordanRhea got an error here: return html.evaluate().setTitle("Tasks");
@rokstar343
@rokstar343 5 жыл бұрын
@Rhinzz and Julia, I had a typo in my html file and got the same error. I had a parenthesis where I should have had a curly bracket. So here: I had:
@Cuentil
@Cuentil 7 жыл бұрын
Heroes exist!. Thanks
@patrickberkery8854
@patrickberkery8854 4 жыл бұрын
I like your vids! Check out Moment.js library for date handling. Much easier than formatting and manipulating dates from scratch.
@alexandre1
@alexandre1 6 жыл бұрын
👌
@jeannettemillandvigio3579
@jeannettemillandvigio3579 6 жыл бұрын
Alexandre, when Rhea got an error on while publishing the google script because the lacking of the spreasheet code between /d/ and /edit, was there a way to avoid this error happeding from the begining. Where should I have put the Google Spreasheet key while coding?
@Cuentil
@Cuentil 7 жыл бұрын
Heroes exist!. Thanks
@JordanRhea
@JordanRhea 6 жыл бұрын
That is quite the compliment +Esteban. Cheers!
@ashiksaleem360
@ashiksaleem360 5 жыл бұрын
@@JordanRhea Not All heroes wear cape
Apps Script: JSON Example
16:40
Jordan Rhea
Рет қаралды 23 М.
Apps Script: Contact Form Example
18:18
Jordan Rhea
Рет қаралды 18 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Introduction to Google Apps Script
35:40
Jordan Rhea
Рет қаралды 131 М.
Template Partials & Passing Objects - Google Apps Script Web App Tutorial - Part 2
17:45
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 188 М.
Apps Script: Using Codepen to layout your HTML and CSS
23:34
Jordan Rhea
Рет қаралды 12 М.
Google Sheets Form for Data Entry - Apps Script
59:47
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 360 М.
HTML Tutorial - How to Make a Super Simple Website
33:24
freeCodeCamp.org
Рет қаралды 3,7 МЛН
Google Classroom Builder with Apps Script and an API
20:35
Jordan Rhea
Рет қаралды 12 М.
Apps Script: Using Multiple Services in a Web App
29:42
Jordan Rhea
Рет қаралды 8 М.
Unlock the Secrets of PDF Generation with Google Apps Script
10:56
Google Developer Communities North America
Рет қаралды 21 М.
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 207 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН