Can you embed like before without having to use "Script"

  • Profile Image
    derekheisler
    Asked on February 11, 2013 at 01:38 AM

    This breaks functionality on Prosite.com websites. Wondering if the old iframe embed option was available? without script.

  • Profile Image
    pinoytech
    Answered on February 11, 2013 at 02:33 AM

    Hi,

    Yes, you can still embed iframe code in to your website without the script code.

    For example:

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//yang.jotform.com/form/xxxxxxxxxx" frameborder="0" style="width:100%; height:1119px; border:none;" scrolling="no"></iframe>

    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

    If you'll need further assistance, do let us know.

    Thank you!