Hello,
I have found two snippets on the site that deal with MooFX javascript. They both will be very useful to me. The problem is, I can’t get either to work. This is my plea for help, in newbie terms. Here are the snippets...
http://modxcms.com/forums/index.php/topic,4003.0.html
http://modxcms.com/forums/index.php/topic,3658.0.html
And here’s what I have done. Hopefully someone will see easily what I have done wrong and be able to guide me along the right path. I;ll start with the NeatFAQMoo, which seems to partially work.
1) Downloaded the files
moo.fx.js, moo.fx.pack.js, prototype.lite.js and placed them into,,,
siteroot/assets/site/moofx
2). Added the script specified on the snippet page to the default template, in the <head> and changed the path of the javascript calls to point to where they live..
<script src="assets/site/moofx/prototype.lite.js"></script>
<script src="assets/site/moofx/moo.fx.js"></script>
<script src="assets/site/moofx/moo.fx.pack.js"></script>
3). Created a new snippet called NeatFAQMoo and added the code supplied in the snippet topic , NeatFAQMoo.txt, to the new snippet.
4). Placed
[[NeatFAQMoo]] onto the page that is the FAQ Folder.
Now here’s the thing, The FAQ’s show up, so the
[[NeatFAQMoo]] snippet is, at least, finding the parent and displaying the files that reside in the folder. However, they do not react to mouseclicks and I get a javascript error
Error: ’this.fxa[...]’ is null or not an object
I’m lost, as I have redone this no less than ten times and can’t figure out what I am doing wrong. I did add the script..
<script type="text/javascript">
//Element.cleanWhitespace(’content’);
init();
</script>
just before the </body> tag of the default template.
What in the world am I doing wrong? I’m pulling my hair out on this one.
Could anyone give me some basic instructions on how to make either one of these snippets work?
Has anyone actually gotten them to work?
I thank you in advance for your help.
__________
Banta