When I first started off with GAS the success and failure handler were so so complicated and I didn't quite understand why, now I realize because I didn't learn GAS methodically like David does so well! Thanks!!!
Hey mate! I found your playlist while browsing around. I’ve just watched a couple of o videos and wanted to thank you! I may have forgotten to like some of them, but I’d like you to know that I appreciate your hard work! I hope I can also give back to the community one day!
Hey David, first of all thanks for doing a great job by making a playlist on Google Apps Script. Initially I was searching for things.. but when I stumbled upon your videos I liked them! ... I had a query .. can you help me as to how do I achieve directing from one page to another using the onclick in the Apps Script code. It will be a great help. Thanks in advance.
Hello Ankit, here is what I use in my script to navigate another page. #1. I use a global variable: var Route = {}; Route.path = function(route,callback){ Route[route] = callback; } #2. Then I use this Route variable in my doGet function: function doGet(e){ Route.path("route1",callback); Route.path("route2",callback2); if(Route[e.parameters.v]){ return Route[e.parameters.v](); } else { return HtmlService.createTemplateFromFile("index"); } } #3. For each route, I use a separate callback function function callback(){ return HtmlService.createTemplateFromFile("Page1") } function callback2(){ return HtmlService.createTemplateFromFile("Page2") } #4. Then I use this Scriptless inside my HTML template:
How can we send a variable which was used in oneof the function in server side to frontend, i know here you have only returned the id using getid function but i wanna to send the data of that function present in server side
oh lord, David! your videos are awesome!!!
When I first started off with GAS the success and failure handler were so so complicated and I didn't quite understand why, now I realize because I didn't learn GAS methodically like David does so well! Thanks!!!
Hey mate! I found your playlist while browsing around. I’ve just watched a couple of o videos and wanted to thank you! I may have forgotten to like some of them, but I’d like you to know that I appreciate your hard work! I hope I can also give back to the community one day!
You are awesome teacher...but not many people know your channel. Thank you for your Tutorials
Great work!! You are doing an amazing job by teaching us!
Such a great video! Thank you.
Hey David, first of all thanks for doing a great job by making a playlist on Google Apps Script. Initially I was searching for things.. but when I stumbled upon your videos I liked them! ... I had a query .. can you help me as to how do I achieve directing from one page to another using the onclick in the Apps Script code. It will be a great help. Thanks in advance.
Hello Ankit, here is what I use in my script to navigate another page.
#1. I use a global variable:
var Route = {};
Route.path = function(route,callback){
Route[route] = callback;
}
#2. Then I use this Route variable in my doGet function:
function doGet(e){
Route.path("route1",callback);
Route.path("route2",callback2);
if(Route[e.parameters.v]){
return Route[e.parameters.v]();
} else {
return HtmlService.createTemplateFromFile("index");
}
}
#3. For each route, I use a separate callback function
function callback(){
return HtmlService.createTemplateFromFile("Page1")
}
function callback2(){
return HtmlService.createTemplateFromFile("Page2")
}
#4. Then I use this Scriptless inside my HTML template:
@@mdamirhossain9376 Thanks Amir. Will definitely try this.
@@Ankit4044 You're welcome.
How can we send a variable which was used in oneof the function in server side to frontend, i know here you have only returned the id using getid function but i wanna to send the data of that function present in server side
Please add "Thank You" button. I prefer one-off financial contributions.
🙏🏻👏👍🏻