Can I use jquery and other JS scripts as I normally would instead of using modules?
ex. (in template)
[removed][removed]
[removed]
$(’‘).doSomething();
[removed]
?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
May 03, 2011 12:29pm
Subscribe [1]#1 / May 03, 2011 12:29pm
Can I use jquery and other JS scripts as I normally would instead of using modules?
ex. (in template)
[removed][removed]
[removed]
$(’‘).doSomething();
[removed]
?
#2 / May 04, 2011 12:49am
Welcome to the forums, kjacket!
Yes, you can use your own JS calls, you don’t need to use the jQuery module. Call them as you would on a normal HTML page, but make sure you use the absolute path, ie:
src="/scripts/name-of-script.js"You’ll also want to ensure that you keep Admin > System Administration > Output and Debugging Preferences, Debug Preference Set to “1: Superadmins only”.
Does that help?