gedw99 wrote:
2. Use Template
There is no ability to create templates that also load JavaScript libraries as part of the template. I am referencing to the Admin area here.
Since templates are almost always dependent on the underlying html DOM structure, and so is the CSS i would have thought that this would be OK.
Of course we can hard code the links in the template ascx to the JS modelled inside the Template File System
For admin pages this would be fine to embed the js files in the template control.
Quote:
3. Embed into Module.
This seems like a smart option to me?
I really thought we already had this with RegisterJavaScripts() just like we do this with stylesheets (RegisterStyleSheets, available in BaseModuleControl, which references the method in PageEngine). To my surprise it has never been implemented. Do you know RegisterStyleSheets() and do you think it would be a good idea to make the same construction for javascripts?