I am having trouble cross reference JS function from one to another. I think the suggested way to write a Metro Style App is that you put your function in (function () {//code here})() from Microsoft. I couldn’t really find anything related to this matter from MS, does anyone know how to do it?
Thanks in advance!
You need to include the source file in the page before you call the function is in the other file.
You can create classes etc using WinJS.Class.define, as well as namespaces:
You can then include that file before somewhere else that references it, and call it as you see fit.