iFrame Resizer not resizing (error: IFrame has not responded within 5 seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame.) -
i trying resize cross-domain iframe on page below, using david bradshaw's iframe resizer:
http://unbouncepages.com/test-succeed-nova/
i have implemented code basic configuration, iframe not resize.
click "get free live demo" initialize lightbox containing iframe.
to see not resize, hit "submit" on form in lightbox, , see how form height increases accommodate error messages, iframe height not.
while several errors target origin not match recipient window's origin, understand other posts plugin author bug chrome, , should not prevent plugin functioning.
below iframe code, error above indicates not there:
<form><!-- form code here --></form> <script> var iframeresizer = { messagecallback: function(message){ alert(message,parentiframe.getid()); } } </script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeresizer.contentwindow.js"></script>
and here code parent page:
<iframe src="https://pi.pardot.com/l/311851/2017-08-08/2jjfb" id="sizetracker" width="100%" height="500px" type="text/html" frameborder="0" allowtransparency="true"></iframe> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeresizer.js"></script> <script type="text/javascript">iframeresize({log:true});</script>
Comments
Post a Comment