Hello everybody,
as you might notice, I’m still learning MODx.
So, I was planning to include some Javascript-files on my MODx site.
I just used the standard-code in the head-section of the page:
<!-- Glider -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/scriptaculous.js"></script>
<script type="text/javascript" src="assets/js/glider.js"></script>
But - it doesn’t work! I find that odd.
So, I tried to add the code in a chunk - doesn’t work. Add it in a snippet - doesn’t work either. Also, I replaced assets/js... with the real URL (
http://www.....de/assets...), to make sure the path is right. But it does not help.
I read somewhere on the net about a method using a TV with a textarea and the @INHERIT-value. But this doesn’t wok. The input area doesn’t even get displayed.
My question is, how I can include the Javascript-files successfully. (I tried the search but didn’t find a thread that solves my problem.)
Edit: Ooops, it seems as if I posted in a totally wrong section. It would be nice if someone could move my thread to the right spot.