I am trying to get advance iFrame working on this page for auto resizing, but with no luck
https://theluxestudio.co.uk/appointment
It is embedding a page hosted on Google AppScript
I followed the guide for example-53 and added the following to the bottom of the </body>
The ai_external.js is copied from
https://www.theluxestudio.co.uk/wp-content/plugins/advanced-iframe/js/ai_external.js
and hosted on AppScript project and included in the project through an Include function that works for all other javascript hosted on the appScript project.
One small change on the ai_external.js is this as it wasn't getting loaded correctly by the google AppScript and spliting part of javascript in the html body
I also tried like this, but with no luck
</script><script src="https://www.theluxestudio.co.uk/wp-content/plugins/advanced-iframe/js/ai_external.js"></script>
my iframecode in wordpress looks like this
[advanced_iframe id="appointment_request" securitykey="" use_shortcode_attributes_only="true" src="https://script.google.com/macros/s/AKfycbyUid4iynT96cBWsU1yj7UsKSUpa7vKmocywhR6Z2he6pWAOUmDuVrppshtPxEpQSdXPQ/exec" height="1000" width="98%" scrolling="no" use_post_message="debug" multi_domain_enabled="true"]
What I am doing wrong
Can you please change on the top of the file
var extendedDebug = false;
to
var extendedDebug = true;
Unfortunately Chrome let me not debug you setup. This debug hopefully gives some more insights.
Some code is executed because I see that a wrapper div is created
Can you below
var usePostMessage = true;
also add
var debugPostMessage = true;
What you also can try is to add a delay with
var onload_resize_delay=1000
So the resize is delayed.
Best regards, Michael