Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Javascript Modules: Difference between revisions

From MoodleDocs
(Created page with "1. I have a javascript module which doesn't use an external framework (e.g. jQuery) and isn't an AMD module. I may only have the minified version of the module. I want to incl...")
 
No edit summary
Line 1: Line 1:
1. I have a javascript module which doesn't use an external framework (e.g. jQuery) and isn't an AMD module. I may only have the minified version of the module. I want to include it in my Moodle page. How do I do that?
1. I have a third party javascript module which doesn't use an external framework (e.g. jQuery) and isn't an AMD module. I may only have the minified version of the module. I want to include it in my Moodle page. How do I do that?


2. Same question as above but the module is a jQuery non-AMD module. How do I include it?
2. Same question as above but the module is a jQuery non-AMD module. How do I include it?


The page reads to me like there should be a way to do that... it mentions that there is a way, but only describes what to do if the JavaScript file is an AMD module.
The page reads to me like there should be a way to do that... it mentions that there is a way, but only describes what to do if the JavaScript file is an AMD module.

Revision as of 12:31, 10 May 2017

1. I have a third party javascript module which doesn't use an external framework (e.g. jQuery) and isn't an AMD module. I may only have the minified version of the module. I want to include it in my Moodle page. How do I do that?

2. Same question as above but the module is a jQuery non-AMD module. How do I include it?

The page reads to me like there should be a way to do that... it mentions that there is a way, but only describes what to do if the JavaScript file is an AMD module.