... |
... |
@@ -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 |
}); |