A rather simple question but does anyone know why I can call a Image object in an HtmlService template? Like this:
<script>
var myImage = new Image();
</script>
I get the following error:
Image is not defined.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Oranje
Google Apps Script uses Caja to filter unsafe javascript from user’s code. You may try Caja Playground to check what happens with your code. If you get the same error there, then the culprit is Caja, not Google Apps Script