... |
... |
@@ -4,7
+4,7 @@ |
4 |
4 |
</script> |
5 |
5 |
|
6 |
6 |
<script type="text/javascript" src="https://pro.formcloud.de/formcycle/form/includes/010-jquery-min.js?_nc=1620383292614" ></script> |
7 |
|
- <script type="text/javascript" src="https://pro.formcloud.de/formcycle/form/includes/020-jquery-ui-min.js?_nc=20210325123132" ></script> |
|
7 |
+ <!--<script type="text/javascript" src="https://pro.formcloud.de/formcycle/form/includes/020-jquery-ui-min.js?_nc=20210325123132" ></script>--> |
8 |
8 |
<script> |
9 |
9 |
console.log("init2", typeof jQuery, jQuery.fn.jquery); |
10 |
10 |
window.fail = $; |
... |
... |
@@ -81,9
+81,15 @@ |
81 |
81 |
cache: false, |
82 |
82 |
async: false, |
83 |
83 |
success:function(html){ |
84 |
|
- console.log('Form:',html); |
|
84 |
+ console.log('Form loaded:');//,html); |
85 |
85 |
//myFormContainer.html(html); |
86 |
|
- myFormContainer.html(html.replace(/\$/g,'jQuery')); |
|
86 |
+ if (!jQuery('#contentiframe').length) { |
|
87 |
+ myFormContainer.html('<iframe id="contentiframe"></iframe>'); |
|
88 |
+ } |
|
89 |
+ var iframe = document.getElementById('contentiframe'), |
|
90 |
+ iframedoc = iframe.contentDocument || iframe.contentWindow.document; |
|
91 |
+ iframedoc.body.innerHTML = html.replace(/\$/g,'jQuery'); |
|
92 |
+ //myFormContainer.html(html.replace(/\$/g,'jQuery')); |
87 |
87 |
}, |
88 |
88 |
crossDomain: true |
89 |
89 |
}); |