HTML / Javascript code with iFrame doesnt load when opening it for the second time.

0
Hi, We use a HTML / Javascript code iFrame to load a external typeform questionnaire in Mendix. (see below) To get this working I use two HTML snippet widgets (one with html and one with a javascript code) I added the following html in the Html snippet widget to load the iframe with the questionaire: <div class="typeform-widget" data-url="https://designladder.typeform.com/to/u7TikP" data-transparency="100" data-hide-headers=true data-hide-footer=true style="width: 100%;"></div> I added the following javascript in the Html snippet widget to load the iframe with the questionaire: (function() { var qs,js,q,s,d=document, gi=d.getElementById, ce=d.createElement, gt=d.getElementsByTagName, id="typef_orm", b="https://embed.typeform.com/"; if(!gi.call(d,id)) { js=ce.call(d,"script"); js.id=id; js.src=b+"embed.js"; q=gt.call(d,"script")[0]; q.parentNode.insertBefore(js,q) } })() The problem is that when I load the page for the second time the Typeform iframe doesn't load anymore (see second screenshot below) Does someone know the reason for this problem? Thanks!     full image links: https://cdn1.imggmi.com/uploads/2018/9/28/ca900dca6d1d43b59e1955b7690023a0-full.png https://cdn1.imggmi.com/uploads/2018/9/28/d59977c9d256c3a3396c63d7068bdd23-full.png
asked
0 answers