Client to Server Communication - Episode 7.4 | Apps Script ~ HTML Service

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ • 13

  • @gilbertmengue
    @gilbertmengue 2 роки тому

    oh lord, David! your videos are awesome!!!

  • @danielcir8675
    @danielcir8675 4 роки тому

    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!!!

  • @dangoncalvesbr
    @dangoncalvesbr 2 роки тому

    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!

  • @hendrahamid3209
    @hendrahamid3209 4 роки тому +1

    You are awesome teacher...but not many people know your channel. Thank you for your Tutorials

  • @caioaggio6893
    @caioaggio6893 3 роки тому

    Great work!! You are doing an amazing job by teaching us!

  • @daytodatainc
    @daytodatainc 3 роки тому

    Such a great video! Thank you.

  • @Ankit4044
    @Ankit4044 4 роки тому +1

    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.

    • @mdamirhossain9376
      @mdamirhossain9376 4 роки тому +1

      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:

    • @Ankit4044
      @Ankit4044 4 роки тому +1

      @@mdamirhossain9376 Thanks Amir. Will definitely try this.

    • @mdamirhossain9376
      @mdamirhossain9376 4 роки тому

      @@Ankit4044 You're welcome.

  • @shubhamjha5738
    @shubhamjha5738 3 роки тому

    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

  • @iancarr3923
    @iancarr3923 Рік тому

    Please add "Thank You" button. I prefer one-off financial contributions.

  • @cuneiformscript2665
    @cuneiformscript2665 4 роки тому

    🙏🏻👏👍🏻