Script not working

  • Profile Image
    FootballWest
    Asked on February 25, 2014 at 09:39 PM

    Hi

    I am using TYPO3 CMS.  When I embed my form, it just pastes the script text rather than the form.  Any ideas?

    This is the script.

    <script type="text/javascript" src="//form.jotformpro.com/jsform/40058792406961"></script>

     

    Regards,

    Keith

  • Profile Image
    Cesar
    Answered on February 25, 2014 at 11:47 PM

    Is it possible you could try using the iFrame code instead? As the iFrame method helps avoiding script conflicts.

    Do let us know if this does not work for you. Thank you.

    Related Article:
    Getting-the-Form-iFrame-Code

  • Profile Image
    FootballWest
    Answered on February 26, 2014 at 12:31 AM

    Thanks for the suggestion.  I tried it but it still did the same thing and posted only the script itself:

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//form.jotformpro.com/form/40058792406961" frameborder="0" style="width:100%; height:1190px; 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>

  • Profile Image
    FootballWest
    Answered on February 26, 2014 at 12:39 AM

    Never mind.  User error. :-(