Forum Discussion
_anomDiebolt_
7 years agoQrew Elite
I understand what you are trying to do but without a CDN URL to the Kendo library I can only guess what version or components you are using.
You basically have two options:
(1) Try to load Kendo as an AMD library using QuickBase's requirejs implementation:
Here is the requirejs code to load D3 used in an old forum answer:
https://community.quickbase.com/quickbase/topics/how-do-you-reference-a-js-library-in-a-code-page#re...
(2) Modify the Kendo library to prohibit it from loading as an AMD module. At the bottom of the Kendo library there will be code similar to this:
You need to knock out the logic that tests for define.amd. This is a tricky task to edit it correctly as the original code is minified, nested and uses constructs that are difficult for humans to read. I think this it the correct modification but I did not test it:
You basically have two options:
(1) Try to load Kendo as an AMD library using QuickBase's requirejs implementation:
Here is the requirejs code to load D3 used in an old forum answer:
require.config({
paths: {
"d3": "https://cdnjs.cloudflare.com/ajax/libs/d3/4.9.1/d3";
}
});
require(['d3'], function(d3) {
console.dir(d3);
});
https://community.quickbase.com/quickbase/topics/how-do-you-reference-a-js-library-in-a-code-page#re...
(2) Modify the Kendo library to prohibit it from loading as an AMD module. At the bottom of the Kendo library there will be code similar to this:
...
}(jQuery), window.kendo
}, "function" == typeof define && define.amd ? define : function(e, t) {
t()
});
You need to knock out the logic that tests for define.amd. This is a tricky task to edit it correctly as the original code is minified, nested and uses constructs that are difficult for humans to read. I think this it the correct modification but I did not test it:
...
}(jQuery), window.kendo
}, function(e, t) {
t()
});