Include javascript from outside?

Include javascript from outside?

by Matti Jordman -
Number of replies: 5

Hi

I guess this is not possible but just asking to be sure. Is it possible to include Javascript in my module from outside the Moodle?

MJ



Average of ratings: -
In reply to Matti Jordman

Re: Include javascript from outside?

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
What happened when you tried?
In reply to Marcus Green

Re: Include javascript from outside?

by Matti Jordman -
"Coding error detected, it must be fixed by a programmer: Invalid JS url, it has to be shortened url starting with / or moodle_url instance."
In reply to Matti Jordman

Re: Include javascript from outside?

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Did you try using a moodle_url?
Average of ratings: Useful (1)
In reply to Tim Hunt

Re: Include javascript from outside?

by Matti Jordman -
Thanks Tim
moodle_url seems to work! I thought there's some security issues but probably not then.
MJ