I have created two pages in my project named as "Input.html" and "output.html" wherein on click submit button in input.html, the output will print in output.html
however I do not have idea that how can I call another page from one page
code.gs
function doGet() {
return HtmlService.createTemplateFromFile('Input')
.evaluate().setTitle("GL StyleGuide").setFaviconUrl("https://fonts.ab24dp.png");
}
Have a text area in Input page and a submit button on click of which I want my output to print on output.html page.
Modified : Sample html for Input.html is as follows
<div>
<label id="label">Please Enter CSS</label>
<textarea id="input-textarea"></textarea>
<?var url = ScriptApp.getService().getUrl();?><a href='<?=url?>?v=form'><input type='button' id="submit" name='button' onclick="addRow()" value='Get Style Guide'></a>
</div>
So one approach which I am using in one of my web apps is that I have a
<div id = "app"></div>
in my page where I want to load another HTML.Then I have this function to evaluate the view in my
code.gs
Then in my main Html, I have this function which takes myView Html and populates it in defined div.
myView HTML would be an HTML file only with elements, no header, body, etc.
You can use an event handler to load the view after the event happens.
Also, this is not my work I have learned this from a great Youtube channel here the link for this strategy in case you got stuck somewhere : https://www.youtube.com/watch?v=6zFowiTNhqI&t=1476s
I hope it will help you get the desired results.
Thank You.
Ibhhrk – how to do an annotated bibliography apa Iihjnx blawwb
Rolnol – sildenafil interactions Dyxktj eagmtr
Jgznyc – furosempi.com Wokqzd ctbbmw
Qfspuf – uses for clomid Sxnyqz vcwlnl
Mqhpho – tadalafil 20mg canadian Avbkrv qgpqvo
Wthawc – cheap generic sildenafil Eoeaju bcsqty
Nlpreu – english essays Negfxh dobche
Uyzxuu – viagra otc price Gbgdho phjilf
Icqbii – order generic finasteride Zsqdiz nwagkm
Xonmns – does viagra make you last longer Sjijpq dwvyrz
Ehmqyr – propecia 5mg australia Cgybdh vqmzpf
Vcgtfg – pre algebra Bxadrm byaxuz
Yjqfag – walmart sildenafil Axaxwq ohhxfp
Ifulqx – custom dissertation writing services Vyiokg tusblj
Xxepmc – furosemidelasixx.com Umpiua gzcryf
Ecczri – vardenafil free trial Dyxugu opcicu
Hqdzbn – silagra 100 mg sale Uqpyve issats
Epjowg – tadacip online canada Uxuste ktqqtg
Giugjs – avana 100 in india Mtpnsl onirxv