From version < 2.56 >
edited by gru
on 07.05.2021, 15:53
To version < 2.59 >
edited by gru
on 07.05.2021, 15:55
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -35,23 +35,17 @@
35 35   </style>
36 36  
37 37   <script type="text/javascript">
38 - console.log(typeof jQuery.xutil, typeof window.fail);
38 + console.log(typeof jQuery.xutil, typeof window.fail.xutil);
39 39   fcjq = jQuery;
40 - console.log(typeof fcjq.xutil);
40 + console.log(typeof fcjq.xutil, fcjq === jQuery, jQuery === window.fail);
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 - 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.' );
48 + jQuery('#result').html('Nachricht von: "' + msg.origin + '" Formular mit id: "' + msg.data + '" wurde ausgewählt.' );
55 55   renderForm(msg.data);
56 56   }
57 57   console.log("Adding eventlistener");
... ... @@ -61,9 +61,9 @@
61 61  window.renderForm = function(formId){
62 62   var myBase = 'https://help6.formcycle.eu/xwiki/bin/edit/Examples/IncludeFormViaExternalContext/';
63 63   var fcBase = 'https://pro.formcloud.de/formcycle';
64 - var myFormContainer = fcjq('#content');
58 + var myFormContainer = jQuery('#content');
65 65  
66 - var form = fcjq.ajax({
60 + var form = jQuery.ajax({
67 67   type: "GET",
68 68   url: fcBase + '/form/provide/' + formId,
69 69   data:{
Copyright 2000-2025