Form disappears after few seconds in Firefox & IE.

  • alertheating
    Asked on March 17, 2015 at 8:15 PM

    Why do I see the form when I refresh the page but then it disappears? It happens in Firefox and IE, not Chrome.

    http://www.ruudfurnaceairconditioner.com/free-furnace-ac-quote.htm

     

     

  • Ashwin JotForm Support
    Replied on March 18, 2015 at 12:40 AM

    Hello alertheating,

    I'm sorry for the trouble caused to you.

    I did check your web page where you have embedded your form and I am able to replicate the issue you are having. The form is displayed for few seconds and then disappears.

    I am not sure why but the height of the form is automatically getting reset in firefox. Upon checking, I found that you have embedded your form with its iFrame embed code.

    I would suggest you to re-embed your form using its iFrame embed code without the script code. Please use the following iFrame embed code highlighted in green color and exclude the script code highlighted in red color:

    <iframe id="JotFormIFrame" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//form.jotform.us/form/50726862407155" frameborder="0" style="width:100%; height:816px; 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;case "collapseErrorPage":if (iframe.clientHeight > window.innerHeight) {iframe.style.height = window.innerHeight + "px";}break;case "reloadPage":window.location.reload();break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

    Do try the above embed code and get back to us if the issue persists.

    Thank you!

  • alertheating
    Replied on March 21, 2015 at 7:36 PM

    Looks good, thank you!

  • Ben
    Replied on March 22, 2015 at 6:39 AM

    Great to hear that it worked for you and in my colleague's name you are welcome. :)

    Please do let us know if there is anything else that we can assist you with.