Board Thread:Support Requests - Getting Technical/@comment-6512089-20140729173056/@comment-6512089-20140730023031

Gamedezyner:

Your tip was invaluable! (I think the verbatim tag tutorial that I used needs to be rewritten to make more sense.) My calculator shows up on the wiki page now, but I'm having trouble when it comes to pulling in the JavaScript. It is as if the MediaWiki:RefocusingCalculator.js I've written isn't being read as a true .js file. Chrome console is giving me a lot of "Uncaught reference" errors and is telling me each of my functions "is not defined." My first guess is that the rest of the wiki page structure is getting in the way, but I could be wrong.

Have you run into this issue at all in the past?

Thanks again!

EDIT: I uploaded my .js file to a JavaScript hosting site and linked to it from there. Everything works well now. If anyone can share further details on how to use a MediaWiki page as a .js file, please let me know. Thanks so much for your help, Fubuki and Gamedezyner! You rock!