Reputation: 33
I am working with a web app. I have a button that activates a function in a .gs file that retrieves data (an array of numbers). I need to send this data over to the html to be displayed. I have tried returning the .gs function but that does not give an output.
Upvotes: 0
Views: 109
Reputation: 33
Take a look at templated html in the documentation. If you don't like templated html you can use the onReadyState event to get the data from the server using google.script.run.withSuccessHandler().functionName() also in the documentation – Cooper
Upvotes: 1