Skip to main content

Embed Element Not Working

Comments

5 comments

  • Permanently deleted user

    Hi Marcus,

    Thank you for contacting us.

    Could you, please, check if you are using the latest versions of Brizy Free 2.3.25 and Brizy Pro 2.3.18? Please temporarily deactivate all external plugins (except Brizy Free and Brizy Pro) and activate a WordPress default theme? Also, please clear the browser and server cache, then check if you still have this problem. Also, could you please send us the code for the embed element and we will check it?

    Best regards, Nelea.

    0
  • Marcus Baker

    I followed the directions below and still have the same issue. If this is not resolved I'll be forced to go back to Elementor. Please help. 

    0
  • Doina P

    Hello Marcus,

    Thank you for your message!

    First of all, as my colleague mentioned, please send us the code that you used for the embed element. At the same time, please do not respond to "no-reply emails" as they appear as SPAM. Thank you and hope to hear from you soon!

    Kind regards,

    Doina

    0
  • Marcus Baker

    Here are the code(s) I've tried to embed.

    Embed Code:
    <script type="text/javascript" src="https://form.jotform.com/jsform/220036214926145"></script>

    Iframe Code:
    <iframe id="JotFormIFrame-220036214926145" title="Passion By The Pound Cake Order Form" onload="window.parent.scrollTo(0,0)" allowtransparency="true" allowfullscreen="true" allow="geolocation; microphone; camera" src="https://form.jotform.com/220036214926145" frameborder="0" style=" min-width: 100%; height:539px; border:none;" scrolling="no" > </iframe> <script type="text/javascript"> var ifr = document.getElementById("JotFormIFrame-220036214926145"); if (ifr) { var src = ifr.src; var iframeParams = []; if (window.location.href && window.location.href.indexOf("?") > -1) { iframeParams = iframeParams.concat(window.location.href.substr(window.location.href.indexOf("?") + 1).split('&')); } if (src && src.indexOf("?") > -1) { iframeParams = iframeParams.concat(src.substr(src.indexOf("?") + 1).split("&")); src = src.substr(0, src.indexOf("?")) } iframeParams.push("isIframeEmbed=1"); ifr.src = src + "?" + iframeParams.join('&'); } window.handleIFrameMessage = function(e) { if (typeof e.data === 'object') { return; } var args = e.data.split(":"); if (args.length > 2) { iframe = document.getElementById("JotFormIFrame-" + args[(args.length - 1)]); } else { iframe = document.getElementById("JotFormIFrame"); } if (!iframe) { return; } switch (args[0]) { case "scrollIntoView": iframe.scrollIntoView(); break; case "setHeight": iframe.style.height = args[1] + "px"; break; case "collapseErrorPage": if (iframe.clientHeight > window.innerHeight) { iframe.style.height = window.innerHeight + "px"; } break; case "reloadPage": window.location.reload(); break; case "loadScript": if( !window.isPermitted(e.origin, ['jotform.com', 'jotform.pro']) ) { break; } var src = args[1]; if (args.length > 3) { src = args[1] + ':' + args[2]; } var script = document.createElement('script'); script.src = src; script.type = 'text/javascript'; document.body.appendChild(script); break; case "exitFullscreen": if (window.document.exitFullscreen) window.document.exitFullscreen(); else if (window.document.mozCancelFullScreen) window.document.mozCancelFullScreen(); else if (window.document.mozCancelFullscreen) window.document.mozCancelFullScreen(); else if (window.document.webkitExitFullscreen) window.document.webkitExitFullscreen(); else if (window.document.msExitFullscreen) window.document.msExitFullscreen(); break; } var isJotForm = (e.origin.indexOf("jotform") > -1) ? true : false; if(isJotForm && "contentWindow" in iframe && "postMessage" in iframe.contentWindow) { var urls = {"docurl":encodeURIComponent(document.URL),"referrer":encodeURIComponent(document.referrer)}; iframe.contentWindow.postMessage(JSON.stringify({"type":"urls","value":urls}), "*"); } }; window.isPermitted = function(originUrl, whitelisted_domains) { var url = document.createElement('a'); url.href = originUrl; var hostname = url.hostname; var result = false; if( typeof hostname !== 'undefined' ) { whitelisted_domains.forEach(function(element) { if( hostname.slice((-1 * element.length - 1)) === '.'.concat(element) || hostname === element ) { result = true; } }); return result; } }; if (window.addEventListener) { window.addEventListener("message", handleIFrameMessage, false); } else if (window.attachEvent) { window.attachEvent("onmessage", handleIFrameMessage); } </script>

    0
  • Alex

    Hi,

    just checked it and works well for me: https://jumpshare.com/v/a0Uo9cBda90ECsyiDsVM So the problem is specific to your site. It could be due to a third-party plugin. Do you have any optimization plugins? Do you have the same problem if you disable all your external plugins? Also, can you please send a screen recording so that we can see the actions and the error that occurs?

    0

Please sign in to leave a comment.