... |
... |
@@ -51,12
+51,13 @@ |
51 |
51 |
console.log("SADKJGAFGSALIFABGSFLHSAFHLSAHFLIHASIFHLIHFASILHLSAHFLIHSALIH"); |
52 |
52 |
console.log('Nachricht von: "' + msg.origin + '" Formular mit id: "' + msg.data + '" wurde ausgewählt.'); |
53 |
53 |
jQuery('#result').html('Nachricht von: "' + msg.origin + '" Formular mit id: "' + msg.data + '" wurde ausgewählt.' ); |
54 |
|
- |
|
54 |
+ var formID =msg.data; |
|
55 |
+ console.log('formID',msg.data.formId); |
55 |
55 |
var myBase = 'https://help6.formcycle.eu/xwiki/bin/edit/Examples/IncludeFormViaExternalContext/'; |
56 |
56 |
var fcBase = 'https://pro.formcloud.de/formcycle'; |
57 |
57 |
var myFormContainer = jQuery('#content'); |
58 |
58 |
myFormContainer.html(''); |
59 |
|
- myFormContainer.html('<iframe id="xm-form" src="'+fcBase+'/form/provide/'+msg.data+'?xfc-height-changed-evt=true" style="width:100%; height:1000px" scrolling="yes" frameborder="0" />'); |
|
60 |
+ myFormContainer.html('<iframe id="xm-form" src="'+fcBase+'/form/provide/'+formID+'?xfc-height-changed-evt=true" style="width:100%; height:1000px" scrolling="yes" frameborder="0" />'); |
60 |
60 |
//renderForm(msg.data); |
61 |
61 |
} |
62 |
62 |
console.log("Adding eventlistener"); |