rajpoot cosmetics Posted August 29, 2018 Share Posted August 29, 2018 I have installed 1.7.4.2 version. i want to enable Allow iframes on HTML fields this option is on but i cant find iframes in html fields please help me/ Link to comment Share on other sites More sharing options...
rajpoot cosmetics Posted August 29, 2018 Author Share Posted August 29, 2018 44 minutes ago, ndiaga said: Hi, You have to put them yourself. And I think you can not put more than one in a page. Ok. but i didnt use even single time because it is not show any iframe option Link to comment Share on other sites More sharing options...
rajpoot cosmetics Posted August 29, 2018 Author Share Posted August 29, 2018 Link to comment Share on other sites More sharing options...
rajpoot cosmetics Posted August 29, 2018 Author Share Posted August 29, 2018 Ok but how can i put is in page content Link to comment Share on other sites More sharing options...
Knowband Plugins Posted August 29, 2018 Share Posted August 29, 2018 Kindly confirm what you are trying to achieve by enabling "Allow Iframe" ? & Whats your understanding on the same? Link to comment Share on other sites More sharing options...
rajpoot cosmetics Posted August 29, 2018 Author Share Posted August 29, 2018 i want to enable it becuase i want to add contact form into page Link to comment Share on other sites More sharing options...
Knowband Plugins Posted August 29, 2018 Share Posted August 29, 2018 Do you have the URL of the contact us form which you want to add in the pages? Add lines similar to below in the page content from the admin. <ifram src="URL OF THE CONTACT FORM"></iframe> Link to comment Share on other sites More sharing options...
rajpoot cosmetics Posted August 29, 2018 Author Share Posted August 29, 2018 i want to load this <iframe id="JotFormIFrame-82394535589472" onload="window.parent.scrollTo(0,0)" allowtransparency="true" allowfullscreen="true" allow="geolocation; microphone; camera" src="https://form.jotform.me/82394535589472" frameborder="0" style="width: 1px; min-width: 100%; height:539px; border:none;" scrolling="no" > </iframe> <script type="text/javascript"> var ifr = document.getElementById("JotFormIFrame-82394535589472"); if(window.location.href && window.location.href.indexOf("?") > -1) { var get = window.location.href.substr(window.location.href.indexOf("?") + 1); if(ifr && get.length > 0) { var src = ifr.src; src = src.indexOf("?") > -1 ? src + "&" + get : src + "?" + get; ifr.src = src; } } window.handleIFrameMessage = function(e) { 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": 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}), "*"); } }; if (window.addEventListener) { window.addEventListener("message", handleIFrameMessage, false); } else if (window.attachEvent) { window.attachEvent("onmessage", handleIFrameMessage); } </script> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now