Jotform js embed isues and question about iframe

  • asccombaillaux
    Asked on December 8, 2014 at 6:18 PM

    Hi,

    I read that it was not safe to use "iframe" as it is an easy get entry for troyan horses.

    I tried the embeded form but the "next" button doesn't work: http://sud-sport.com/test2.php

    Although the "iframe" embedding works properly http://sud-sport.com/inscriptions_formulaire.php?course=43342069863358

    I am concerned by wafety issues, do you have any advice ?

    Thanks for your help?

  • Ben
    Replied on December 8, 2014 at 7:06 PM

    Hi,

    I would suggest using iframe instead. While bad things are truly associated with trojans and iframe, that is only since the iframe allows the bad people to post their content without the rest of the scripts on the page affecting their work.

    However this is not a way for them to get in, it is only an element that they use to display their output to the world. The actual issue is in the CMS or server itself, which allows the hackers, or bots to come into the system and replace the code in the background that shows the iframes.

    I hope that I was able to explain it properly, but in short version, you should not be afraid of using iframes, the only way the iframes are used in bad purpose is when a bad script/bot is on the server causing issues and creating its own iframes - not the same as the ones you will be making.

    Do let us know if you have any further issues, or questions and we would be happy to answer them.

    In regards to the issue that you have, unfortunately it can only be fixed by iframe since there is a code on your website conflicting with jotform.

    Best Regards,
    Ben

  • asccombaillaux
    Replied on December 8, 2014 at 7:09 PM

    Hi Ben,

    Could you show me the conflicting code so that I could try to remove it and used the jotform script embedding.

    Thanks,

    Georges

  • Ben
    Replied on December 8, 2014 at 7:20 PM

    Hi Georges,

    Unfortunately that is a very long and tedious work since you can only see what fails to work - which is jotform. You would most likely need to remove the calls for jquery js file. I see that you are calling version 1.11.1 and our jotform is trying to call version 1.8.

    Even if you had the same versions, it could only cause more issues because of the same declarations.

    A possible way to use js embed is to use noConflict rule just before the jotform is embedded.

    Avoiding Conflicts with Other Libraries | jQuery Learning Center

    How to prevent JotForm from loading jQuery?

    This should fix it if the issues are only caused by jQuery.

    Do let us know if you have any further questions.

    Best Regards,
    Ben