Created
February 1, 2015 19:52
-
-
Save rustyeddy/0b279bb26c1ca9d556e8 to your computer and use it in GitHub Desktop.
Success and failure handlers for Google Apps Web Apps. Place this in HTML for Google Apps HTML service.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function onSuccess(numUnread) { | |
alert('You have ' + numUnread + ' messages'); | |
} | |
function onFailure(error) { | |
alert(error.message); | |
} | |
google.script.run.withSuccessHandler(onSuccess).withFailureHandler(onFailure).getUnreadEmails(); | |
google.script.run.doSomething(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment