#
gedw99
I am wondering where is the best spot to put JavaScript files.
There a few options i see, and wondering what people can recommend here to keep me out of trouble.
1. Use Support.
This seems to be used allot for JavaScript which is used across Modules.
For example Default button does this.
Maybe its better to use the JavaScript as an embedded resource and load it up as a Web Resource each time you need it.
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
3. Embed into Module.
This seems like a smart option to me?
There a few options i see, and wondering what people can recommend here to keep me out of trouble.
1. Use Support.
This seems to be used allot for JavaScript which is used across Modules.
For example Default button does this.
Maybe its better to use the JavaScript as an embedded resource and load it up as a Web Resource each time you need it.
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
3. Embed into Module.
This seems like a smart option to me?