Ok so right now I'm doing this:
google.script.run
.withSuccessHandler(updateOutput)
.withFailureHandler(errorOutput)
.finish();
And then
function updateOutput(info)
{
var br='<br />';
var outputDiv = document.getElementById('status');
outputDiv.innerHTML = 'First Logic Compete' + br + br +'GotoLogic: ' +info.slide+ br + 'Copy text: ' + info.text + br ;
}
Is there any way to cut out the need to call another function? and directly interact with the google.script.run
result object inside the first function?
Edit, this doesn't work either, the number returned is blank:
var object = google.script.run
.withSuccessHandler(function (number) {
document.getElementById('bugLink').href = "https://bug.com/issues/" + number;
document.getElementById('time').innerHTML = number;
})
.finish();