Von Version < 2.59 >
bearbeitet von gru
am 07.05.2021, 15:55
Auf Version < 2.58 >
bearbeitet von gru
am 07.05.2021, 15:54
< >
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

Seiteneigenschaften
Inhalt
... ... @@ -41,11 +41,17 @@
41 41   //console.log("BE",window.fcjq);
42 42   //$.noConflict();
43 43   //console.log("AF",window.fcjq);
44 -
44 +
45 45   function myFormCycleCallback(msg){
46 46   console.log("SADKJGAFGSALIFABGSFLHSAFHLSAHFLIHASIFHLIHFASILHLSAHFLIHSALIH");
47 47   console.log('Nachricht von: "' + msg.origin + '" Formular mit id: "' + msg.data + '" wurde ausgewählt.');
48 - jQuery('#result').html('Nachricht von: "' + msg.origin + '" Formular mit id: "' + msg.data + '" wurde ausgewählt.' );
48 + var jq = function() {};
49 + if (typeof jQuery === 'function') {
50 + jq = jQuery;
51 + } else if (typeof $ === 'function') {
52 + jq = $;
53 + }
54 + jq('#result').html('Nachricht von: "' + msg.origin + '" Formular mit id: "' + msg.data + '" wurde ausgewählt.' );
49 49   renderForm(msg.data);
50 50   }
51 51   console.log("Adding eventlistener");
... ... @@ -55,9 +55,9 @@
55 55  window.renderForm = function(formId){
56 56   var myBase = 'https://help6.formcycle.eu/xwiki/bin/edit/Examples/IncludeFormViaExternalContext/';
57 57   var fcBase = 'https://pro.formcloud.de/formcycle';
58 - var myFormContainer = jQuery('#content');
64 + var myFormContainer = fcjq('#content');
59 59  
60 - var form = jQuery.ajax({
66 + var form = fcjq.ajax({
61 61   type: "GET",
62 62   url: fcBase + '/form/provide/' + formId,
63 63   data:{
Copyright 2000-2025