Google Script trouble with arrays
I'm building an app on top of Google Spreadsheets. Using GoogleScript and
the HTML service to make the UI. Having trouble with working with
JavaScript arrays. The following sample code, gives an error in FireBug:
"TypeError: Cannot set "ary""
<p id=sample></p>
<script>
ary = new Array();
ary = ["Banana", "Orange", "Apple", "Mango"];
peter1 = ary[1];
$('#sample').html(peter1);
</script>
No comments:
Post a Comment