... |
... |
@@ -1,11
+1,15 @@ |
1 |
1 |
{{html clean="false"}} |
|
2 |
+ <script> |
|
3 |
+ console.log("init", typeof jQuery, jQuery.fn.jquery); |
|
4 |
+ </script> |
|
5 |
+ |
2 |
2 |
<script type="text/javascript" src="https://pro.formcloud.de/formcycle/form/includes/010-jquery-min.js?_nc=1620383292614" ></script> |
3 |
3 |
<script type="text/javascript" src="https://pro.formcloud.de/formcycle/form/includes/020-jquery-ui-min.js?_nc=20210325123132" ></script> |
4 |
4 |
<script> |
5 |
|
- console.log("init2", typeof jQuery); |
|
9 |
+ console.log("init2", typeof jQuery, jQuery.fn.jquery); |
6 |
6 |
window.fail = $; |
7 |
7 |
$.noConflict(); |
8 |
|
- console.log("init2", typeof jQuery, typeof window.fail); |
|
12 |
+ console.log("init2", typeof jQuery, typeof window.fail, jQuery.fn.jquery); |
9 |
9 |
</script> |
10 |
10 |
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>--> |
11 |
11 |
<style type="text/css"> |
... |
... |
@@ -41,17
+41,11 @@ |
41 |
41 |
//console.log("BE",window.fcjq); |
42 |
42 |
//$.noConflict(); |
43 |
43 |
//console.log("AF",window.fcjq); |
44 |
|
- |
|
48 |
+ |
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.' ); |
|
52 |
+ 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'); |
|
62 |
+ var myFormContainer = jQuery('#content'); |
65 |
65 |
|
66 |
|
- var form = fcjq.ajax({ |
|
64 |
+ var form = jQuery.ajax({ |
67 |
67 |
type: "GET", |
68 |
68 |
url: fcBase + '/form/provide/' + formId, |
69 |
69 |
data:{ |