... |
... |
@@ -48,15
+48,17 @@ |
48 |
48 |
//console.log("AF",window.fcjq); |
49 |
49 |
|
50 |
50 |
function myFormCycleCallback(msg){ |
51 |
|
- console.log("SADKJGAFGSALIFABGSFLHSAFHLSAHFLIHASIFHLIHFASILHLSAHFLIHSALIH"); |
52 |
|
- console.log('Nachricht von: "' + msg.origin + '" Formular mit id: "' + msg.data + '" wurde ausgewählt.'); |
53 |
|
- jQuery('#result').html('Nachricht von: "' + msg.origin + '" Formular mit id: "' + msg.data + '" wurde ausgewählt.' ); |
54 |
|
- var formID =msg.data.formId; |
|
51 |
+ var formID =msg.data; |
55 |
55 |
console.log('formID',msg.data.formId); |
56 |
56 |
var myBase = 'https://help6.formcycle.eu/xwiki/bin/edit/Examples/IncludeFormViaExternalContext/'; |
57 |
57 |
var fcBase = 'https://pro.formcloud.de/formcycle'; |
58 |
58 |
var myFormContainer = jQuery('#content'); |
59 |
59 |
if (typeof formID !== 'object' && typeof formID !== 'Object' && typeof formID !== 'undefined') { |
|
57 |
+ console.log("SADKJGAFGSALIFABGSFLHSAFHLSAHFLIHASIFHLIHFASILHLSAHFLIHSALIH"); |
|
58 |
+ console.log('Nachricht von: "' + msg.origin + '" Formular mit id: "' + msg.data + '" wurde ausgewählt.'); |
|
59 |
+ jQuery('#result').html('Nachricht von: "' + msg.origin + '" Formular mit id: "' + msg.data + '" wurde ausgewählt.' ); |
|
60 |
+ |
|
61 |
+ |
60 |
60 |
myFormContainer.html(''); |
61 |
61 |
myFormContainer.html('<iframe id="xm-form" src="'+fcBase+'/form/provide/'+formID+'" style="width:100%; height:1000px" scrolling="yes" frameborder="0" />'); |
62 |
62 |
|