... |
... |
@@ -83,13
+83,13 @@ |
83 |
83 |
success:function(html){ |
84 |
84 |
console.log('Form loaded:',html.length);//,html); |
85 |
85 |
//myFormContainer.html(html); |
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')); |
|
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')); |
93 |
93 |
}, |
94 |
94 |
crossDomain: true |
95 |
95 |
}); |