I'm developing my own modules, and have some clientside scripting (javascript) that I've pulled out into seperate .js files (rather than confusing the .aspx files, and thus also allowing me to share javascript code between aspx's). What I can't figure out is how I should be 'including' the javascript files.
Worst case scenario is that I add a script link to the top of each .aspx file (which could be wasteful if there are multiple instances of the module on a page), but I can't figure out what path to put in the <script src=.... tag. I'm happy to put the js files in the common js directory, or in one for my module, but how do I figure out the base path of the portal?
More ideally I'd be able to say that this module requires the following javascript files (sort of .js dependencies) and have the script tags injected into the top of the page automagically.
You're thoughts / suggestions / recommendations very much appreciated.
Regards,
Dave Amphlett