Skip to content Skip to sidebar Skip to footer

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 :

<scriptsrc="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script><scriptsrc="https://apis.google.com/js/api.js?onload=onApiLoad"></script>

Check if it runs on load by adding a log for example

functionupdate() {
    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"