IFRAME And NATIVE Mode In Google Apps Script
I have created a google apps script to display some indicators with images. I have used the following code function doGet() { var output= HtmlService.createHtmlOutputFr
Solution 1:
it seems that you used a wrong url to load JQuery lib, Use console to see the error messages
using this one hosted on https server works in IFRAME
mode :
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://apis.google.com/js/api.js?onload=onApiLoad"></script>
Check if it runs on load by adding a log for example
function update() {
console.log("update executed");
$.ajaxSetup({ cache: false });
var data=google.script.run.withSuccessHandler(onSuccess).getMyData();
window.setTimeout(update, 500);
}
update();
Post a Comment for "IFRAME And NATIVE Mode In Google Apps Script"