Forum Discussion
Beryllium
Ace
Where do people put this javascript? I copied it and put it in a <script> tag but I got errrors:
Any ideas?
AdamN
12 years agoKhoros Oracle
If you're working with a custom component, I'd suggest putting JavaScript snippets in the @liaAddScript macro. This will place the script near the end of the page so that it loads after all of the core libraries. What's likely happening is that the code you added is trying to use the jQuery methods before it's been setup.
Here's an example of using @liaAddScript:
Related Content
- 10 months ago
- 2 years ago
- 2 years ago