... |
... |
@@ -1,10
+1,10 @@ |
1 |
1 |
{{html clean="false"}} |
2 |
2 |
<script> |
3 |
|
- console.log("init", typeof $, $.fn.jquery); |
|
3 |
+ console.log("init", typeof $);//, $.fn.jquery); |
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,13 @@ |
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 |
+ myFormContainer.html('<iframe id="contentiframe"></iframe>'); |
|
87 |
+ var iframe = document.getElementById('contentiframe'), |
|
88 |
+ iframedoc = iframe.contentDocument || iframe.contentWindow.document; |
|
89 |
+ iframedoc.body.innerHTML = html.replace(/\$/g,'jQuery'); |
|
90 |
+ //myFormContainer.html(html.replace(/\$/g,'jQuery')); |
87 |
87 |
}, |
88 |
88 |
crossDomain: true |
89 |
89 |
}); |