From version < 2.64 >
edited by gru
on 07.05.2021, 16:06
To version < 2.66 >
edited by gru
on 07.05.2021, 16:31
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -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   });
Copyright 2000-2025